I think you can send the query request by using camel producer template[1] in 
your servlet.
The camel route can help you with your business without care much about build 
up right response for the client.

[1]http://camel.apache.org/producertemplate.html  

--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Wednesday, December 19, 2012 at 6:56 PM, Meriem wrote:

> Hi,
> Thank you Christian and Jiang for your reply.
> What I exactly want is to provide a jsp page to the user where he can pick
> two or more application(ex. Rest services) to integrate; for example
> Craiglist(www.craigslist.org (http://www.craigslist.org)/) to search for 
> apartments in
> NewYork(http://newyork.craigslist.org/apa/), and GoogleMap to display the
> result in a map if the apartment price is less than 100 000 dollars.
> So I need to have router component that I can call and that take the result
> of Craiglist, do the routing and provide the list of apartment whose price
> is less than 100000 dollars. This router should be parameterized to be able
> to be used with any other application (in terms of integration patterns this
> is called Content-based router).
> Moreover, I want to be able to do for axample :
> String uri1= "http://newyork.craigslist.org/apa/";;
> String uri2="https://maps.googleapis.com/maps/api/js..............";;
> from(uri1).to--call my router here--
> .to(uri2)
>  
> Thank you very much for your help.
> Best,
> Meriem.
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Problem-Apache-Camel-with-JSP-Tomcat-application-tp5724232p5724358.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to