camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Taylor <ctalk...@ctalkobt.net>
Subject Re: Restarting the Camel route
Date Tue, 20 Mar 2012 01:39:14 GMT
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 <fdrew368@gmail.com> 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
ctalkobt@ctalkobt.net

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message