camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Set response by a second route through "direct" routing?
Date Mon, 05 Sep 2011 13:41:31 GMT
How did you set the response in your directed routes?
I didn't find it.

On 9/2/11 6:13 PM, heinrichheine wrote:
> 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.
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Mime
View raw message