Re: Regarding request routing through camel web app
hi, are you talking about the servlet that i have mentioned in the from URI?? if that is the case, then the from URI shows a web application that is deployed on tomcat. I checked the link that you have provided, but that did not helped me. my requirement is Web application A gives a call to camel web application , and camel web application contains routes defined as From URI contains application A's URI and the to URI contains application B's URI. So, what I want is, camel web application should understand that the request has come from Application A and it should route it to web application B. -- View this message in context: http://camel.465427.n5.nabble.com/Regarding-request-routing-through-camel-web-app-tp5734013p5734058.html Sent from the Camel - Users mailing list archive at Nabble.com.
Regarding request routing through camel web app
hi all, I need a little help. My web application A is sending http request to camel web application . and i have defined a route in camel routebuilder which says if the request comes from A then forward it to other web application B. web application A's http get method is making a http call to camel web application. what i have observed is, the route defined in camel application is not getting invoked. here is the defined route. from(servlet:http://localhost:8085/AppA/a.do?;) .setHeader(Exchange.HTTP_METHOD, constant(POST)) .process(new Processor() { @Override public void process(Exchange exchange) throws Exception { System.out.println( inside the new route123); } }).to(http://localhost:8085/AppB/a.do?bridgeEndpoint=trueamp;throwExceptionOnFailure=true;) ; what i am expecting is, the sysout statement inside process() should get printed in the logs. but when i am hitting the web application A's url, its http get method is getting called, and it is making http call to camel web app, but after that nothing is happening. I can not see the sysout in logs. Please let me know if anybody has any clue for this kind of behaviour. am i missing anyting ?? -- View this message in context: http://camel.465427.n5.nabble.com/Regarding-request-routing-through-camel-web-app-tp5734013.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Regarding request routing through camel web app
Hi, How did you deploy the servlet? If you are using the camel-servelt you just need to use the relative path not use the full path. Please check the document in the camel-servlet[1] for more information. [1]http://camel.apache.org/servlet.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 Friday, June 7, 2013 at 9:26 PM, indrayani wrote: hi all, I need a little help. My web application A is sending http request to camel web application . and i have defined a route in camel routebuilder which says if the request comes from A then forward it to other web application B. web application A's http get method is making a http call to camel web application. what i have observed is, the route defined in camel application is not getting invoked. here is the defined route. from(servlet:http://localhost:8085/AppA/a.do?;) .setHeader(Exchange.HTTP_METHOD, constant(POST)) .process(new Processor() { @Override public void process(Exchange exchange) throws Exception { System.out.println( inside the new route123); } }).to(http://localhost:8085/AppB/a.do?bridgeEndpoint=trueamp;throwExceptionOnFailure=true;) ; what i am expecting is, the sysout statement inside process() should get printed in the logs. but when i am hitting the web application A's url, its http get method is getting called, and it is making http call to camel web app, but after that nothing is happening. I can not see the sysout in logs. Please let me know if anybody has any clue for this kind of behaviour. am i missing anyting ?? -- View this message in context: http://camel.465427.n5.nabble.com/Regarding-request-routing-through-camel-web-app-tp5734013.html Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).