[rabbitmq-discuss] Shutdown Listener on Java Client API
Vlad Alexandru Ionescu
vlad at rabbitmq.com
Wed Sep 15 12:51:27 BST 2010
Hi Dave,
AFAIK, the event should fire regardless of the shutdown reason (be it
connection loss, server initiated connection close, sudden socket
closed, heartbeat timeout etc.). It appears to me that you are using it
correctly.
Depending on the type of load balancer you are using, perhaps the
clients never got disconnected? It is also possible that there is a bug
in the client code.
Rgds,
Vlad.
On 09/13/2010 04:12 PM, Dave Greggory wrote:
> 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?
>
> Thanks,
> Dave
>
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
More information about the rabbitmq-discuss
mailing list