camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Taariq Levack <taar...@gmail.com>
Subject Re: How to return early from a direct: subroute?
Date Fri, 01 Apr 2016 19:35:21 GMT
Did you already look at the dynamic router and routing slip patterns?

> On 01 Apr 2016, at 17:12, bocamel <johnzyin@gmail.com> wrote:
> 
> I have two routes:
> 
> <route id="route1">
>  <from .../>
>  <to uri="direct:foo"/>
>  <to uri=.../>
> </route>
> 
> <route id="route2">
>  <from uri="direct:foo"/>
>  <process ref="proc1"/>
>  <process ref="proc2"/>
> </route>
> 
> What should I do if, in proc1, I want to - for certain exchanges - return
> back to route1 without completing the entire route2?  I know the ROUTE_STOP
> property, but that would stop the exchange completely (without going back to
> route1).  I can also set some header(s) and then use <choice> in the route2
> to achieve it.  But I wonder if there is something analogous to ROUTE_STOP
> but more functions like ROUTE_RETURN.
> 
> Any help would be greatly appreciated.
> 
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-return-early-from-a-direct-subroute-tp5780262.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message