Hi, I am new to Camel so please allow for Newbie issues.
I have a Camel Route in java as follows : public void configure() throws Exception { from("servlet:routeTest") .to("log:input") .to("activemq:queue:inbox"); from("activemq:queue:inbox") .dynamicRouter(method(DynamicRouter.class, "route")) .log("${body}"); } This is bundled in a war deployed on tomcat, this calls the route method as follows : public String route(Exchange exchange) { if (exchange.getIn().getHeader("Server") == null) { if (checkBodyToDeterminServer(exchange.getIn().getBody(String.class))) return "http4://server1/webservices/ClientService?bridgeEndpoint=true&throwExceptionOnFailure=false"; return "http4://server2/webservices/ClientService?bridgeEndpoint=true&throwExceptionOnFailure=false"; } return null; } This routes to server 1 and 2 correctly, my question, is 'exchange.getIn().getHeader("Server") == null' the best way to determine where I am in flow and not process the route on return from the server? If I call server 1 or 2 directly from soapUi I get a success xml message, I see this in the body in the route method, but it doesn't get passed back to the originating soapUi, what step am I missing? Hope this makes sense. Thanks in advance. Phil Maskell -- View this message in context: http://camel.465427.n5.nabble.com/Returning-response-from-external-webservice-using-dynamicRouter-tp5783073.html Sent from the Camel - Users mailing list archive at Nabble.com.