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.

Reply via email to