activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Mielke <>
Subject Re: can a client detect broker failure?
Date Tue, 13 Mar 2012 11:08:22 GMT
Yes, certainly. 
If you are connecting to the broker using e.g. tcp://localhost:61616 as the broker url, then
on broker failure the tcp connection will be lost and this triggers an exception back to the
application level when trying to send/consume the next msg.

However in many scenarios you want the client to be able to transparently reconnect to the
broker, which is achieved using the failover protocol.

Hope this helps.

Torsten Mielke

On Mar 12, 2012, at 9:57 PM, colomb wrote:

> Can a topic or queue consumer detect if the broker to which it is connected
> has shutdown or failed?
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

View raw message