Hi

Are you using any connection pool for JMS, if so remember to stop that too.

On Wed, Jun 11, 2014 at 1:24 AM, jburford <[email protected]> wrote:
> Hi.
>
> I have a network of activemq brokers and for scale & HA we have competing
> consumers on each node on the same queues.  When one node has a failure, I
> want to unregister JMS consumers so that messages do not get sent to the
> node by activemq.  When I call CamelContext.stop and/or
> CamelContext.stopRoute on all the routes, I still see the consumer count > 0
> on the queues.  Because of this, messages still are sent to the node but
> since the Camel routes are stopped, my code does not process the messages
> and they just pile up and get stale.
>
> Is there any way to completely unregister the JMS consumers so they don't
> show up on the activemq admin page in the consumer count on the queue?  This
> is the only way to push the load to the other nodes in the network of
> brokers when one of them goes down.
>
> Any help on this would be much appreciated!
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/unregistering-JMS-consumers-tp5752130.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
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