camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Polling consumer does not stop when pollStrategy specified
Date Tue, 08 Jan 2013 08:13:41 GMT
Hi

There is API on CamelContext to stop routes by its id

camelContext.stopRoute("routeId");


On Tue, Jan 8, 2013 at 9:06 AM, babu.sona2001 <babu.sona2001@gmail.com> wrote:
> I have as follows. I want to stop it, modify and start it.
>
> from('file://D:/temp/20130801/inbound?pollStrategy=#errorHandlerService')
>     .routeId("routeId")
>         .to("stream:out")
>
> My pollStrategy looks like:
> class ErrorHandlerService extends DefaultPollingConsumerPollStrategy {
> }
>
> The following call does not stop the route.
> camelContext.getRoute("routeId").getConsumer().stop()
>
> If I remove the pollStrategy from URI, it works fine. I tried a lot. But
> could not figure out what's wrong. :(.
>
> Thanks
> Babu
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Polling-consumer-does-not-stop-when-pollStrategy-specified-tp5725104.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message