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.sona2...@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: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen