Not sure how the exchangeIn.ROUTE_STOP is working but the camel context has
a start/stopRoute(routeId / RouteDefinition) you can use.



On Mon, Mar 19, 2012 at 6:45 PM, Frank <[email protected]> wrote:

> My route looks like this:
>
> intercept().bean(DoAsIWish.class)
> from("direct:start")
> .bean(BeanA.class)
> .bean(BeanB.class)
> .bean(BeanC.class)
> .bean(BeanD.class)
> .to("log:print");
>
> How can I stop the route in the middle and restart the route from the
> beginning?
>
> Suppose in the above example, I want to stop my route at BeanC and want to
> restart the whole route.
>
> The below line stops the whole exchange and not very useful in my case.
> exchangeIn.setProperty(exchangeIn.ROUTE_STOP, Boolean.TRUE);
>
> Anyone please help me.
>
> Thanks,
> Frank
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Restarting-the-Camel-route-tp5578588p5578588.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
-------------------------------------------
Craig Taylor
[email protected]

Reply via email to