Re: can a client detect broker failure?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: can a client detect broker failure?

Torsten Mielke-2
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
[hidden email]
[hidden email]

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