[rabbitmq-discuss] surviving a consumer disconnection using DefaultConsumer

rails stammailbox at gmail.com
Wed Apr 9 08:58:29 BST 2014


Hi,
Did you mean  DefaultConsumer.handleShutdownSignal?

I just found that in the new 3.3.0 version the following methods were added

connectionFactory.setAutomaticRecoveryEnabled(true);
connectionFactory.setTopologyRecoveryEnabled(true);


Just what I needed.
Thanks.


On Tue, Apr 8, 2014 at 9:18 PM, Michael Klishin <mklishin at gopivotal.com>wrote:

> On 8 April 2014 at 19:38:38, rails (stammailbox at gmail.com) wrote:
> > > I cant catch the exception inside and recreate the connection
> > This only recovers when the ack fails. What if it fails in another
> > stage of the process? How should I recover these fails?
>
> What are you trying to recover from? If you want to recover from network
> failures,
> you need to use shutdown listeners, not exceptions.
> --
> MK
>
> Software Engineer, Pivotal/RabbitMQ
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140409/428dff0e/attachment.html>


More information about the rabbitmq-discuss mailing list