Hi,
to make my route nicer i created a splitter in my incoming http route.
Depending of the content i route the request to different routes via direct.
The thing is, that i have to create the response for the http-request in my
first route. But i want to create a response from within my directed routes.
Is this possible?

Example

from("jetty://http://127.0.0.1:1234/";)
 .choice()
  .when().xpath(expression1)
      .to("direct:goodRoute")
  .when().xpath("expression2)
      .to("direct:badRoute");

So, i want to create the response for the http request in goodRoute and
badRoute. But in real life, the response is just empty if i do so. Do i have
to add an option to the direct route?

Thanks
 martin

--
View this message in context: 
http://camel.465427.n5.nabble.com/Set-response-by-a-second-route-through-direct-routing-tp4761827p4761827.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to