[rabbitmq-discuss] Advice on where to reset connection and channel
cw storm
cwstorm at gmail.com
Sun Feb 16 05:09:14 GMT 2014
I'm interested in knowing how everyone uses the connection listener
"ShutDownListener" and the consumer callback "handleShutDownSignal". Both
of these will be executed in an event a connection was close or a restart
of the broker server. I don't think I would want to include the function
to re-establish the connection/channel in both of the handlers. So, where
would I perform the re-connect logic. Maybe I should just pick one.
Also, another consumer callback name "handleCancel". This will only be
invoke when an unexpected cancellation by the broker. That would also mean
I would have to reconsume from the other node by creating another
connection/channel. I assume this does not get invoke during a restart of
the broker or a force close connection. That would only apply to the two
that I mentioned, right?
-Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140216/bdfe266a/attachment.html>
More information about the rabbitmq-discuss
mailing list