[rabbitmq-discuss] Shutdown Listener on Java Client API

Dave Greggory davegreggory at yahoo.com
Mon Sep 13 16:12:05 BST 2010

We register a shutdown listener to listen for connection-loss events and 
automatically re-connect clients to other RabbitMQ nodes in the cluster. This 
weekend we had to restart the load balancer that sits between rabbitmq and it's 
clients for some maintenance, but the ShutdownCompleted/ShutdownSignalException 
event never fired in the clients. 

I'm trying to understand how the shutdown signal works. Does it only fire the 
ShutDownCompleted event if RabbitMQ node shuts down and sends the signal back to 
clients? If that's the case, I'm probably misusing it to detect connection-loss. 
Is there a different way of detecting connection loss?



More information about the rabbitmq-discuss mailing list