Hi

Are you stopping a route from a route? eg if you do that in the
processor, then see this FAQ
http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html

On Fri, May 30, 2014 at 10:08 PM, rkjoshi2 <rkjos...@gmail.com> wrote:
> I have an apache-camel JMS route.
>
> *form("jms:queue:sourceQueue").to("messageProcessor")*
>
> My requirement is to stop route on 3 message processing failures. In
> messageProcessor class, in catch block I am checking for error count and as
> soon as it reaches 3, I am inovking
>
> *camelContext.stopRoute(routeID, 3, TimeUnit.SECONDS);*
> My route do not stop and spring's DefaultMessageListenerContainer writes
> following line in log
>
> -Shutting down JMS listener container
> -Waiting for shutdown of message listener invokers
> -Still waiting for shutdown of 1 message listener invokers
>
> I am trying to figure out, what is holding DMLC from stopping? What camel
> attribute I am missing?
>
> If I use asyncStopListener=true then camle route stops but a thread keeps
> waiting in background to stop listener.
>
> Thank you for any pointers -
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Still-waiting-for-shutdown-of-1-message-listener-invokers-tp5751761.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to