You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by MicAnn <mb...@axway.com> on 2009/06/05 17:51:17 UTC

Remote/local delivery and ConsumerCount management

Parameters:
apache-activemq-5.2.0
two ore more brokers connected by bridge connector.

Actives consumers
------------------
When a first remote consumer works to listen messages from a queue, the
queue is defined on other brokers (if it doesn't exist) and the
ConsumerCount attribute is incremented (visible with JMX console)

For each local consumer, ConsumerCount is also incremented.
Messages sent to this queue are delivered to active consumers in accordance
with the ConsumerCount value.

Stopping consumers
-------------------
When a local consumer stops to work, ConsumerCount is decremented?
When the all remote consumers stop to work the ConsumerCount is not
affected.

Repercussions
-------------
When a remote consumer listen one time and stops, future messages sent to
the queue will be delivered to the remote queue without consumer. 
When all consumers stop (local and remote), message sent to the local queue
will be delivered to the remote queue. 

Suggestion
-----------
When the last queue consumer stops on a broker, an information will be send
to the other brokers to manage the ConsumerCount and do -1. Otherwise, the
delivery of messages is distorted - usage with difficulty or impossible : it
needs to stop remote or local broker to decremented the ConsumerCount
attribute. 
 

 

-- 
View this message in context: http://www.nabble.com/Remote-local-delivery-and-ConsumerCount-management-tp23890813p23890813.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.