activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Quiroz <>
Subject Network of brokers acknowledgments
Date Wed, 23 Sep 2009 10:35:41 GMT


I have been trying to use a network of brokers to get load balancing and
scale horizantally

Right now I have a single AMQ 5.2 instance and my consumers connect
sporadically to it using durable subscriptions. The clients are often
disconnected and they need to fetch the messages generated while they were
offline. Notice that the messages are directed to a specific client and they
should be delivered only once

I setup a network of brokers let's call them A,B and my objective is that
clients can connect to either. Both A and B have producers sending messages
to any client. Now I tested that if a message is produced and sent to A, the
client can fetch it from A fine. Also if the message is sent to A, it is
then distributed to B and the client can fetch it in B. So this works
exactly as I wanted

Now this scenario doesn't work:

msg1 sent to A
client connects to A and fetches msg1
client disconnects from A
client connects to B and msg1 is delivered again!!

So it seems to me that the acks on A are not being transferred to B

Is this by design or am I doing something wrong

My config is as follow

Broker A
	<broker xmlns=""
		persistent="true" populateJMSXUserID="true" brokerName="brokerA"
		advisorySupport="true" useJmx="true">
			<networkConnector uri="static:(tcp://addressB:61617)"

Broker B
	<broker xmlns=""
		persistent="true" populateJMSXUserID="true" brokerName="brokerB"
		advisorySupport="true" useJmx="true">
			<networkConnector uri="static:(tcp://addressA:61617)"

Thanks for any help

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

View raw message