activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MicAnn <>
Subject Remote/local delivery and ConsumerCount management
Date Fri, 05 Jun 2009 15:51:17 GMT

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

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. 

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


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message