[rabbitmq-discuss] Connection and channel resource management in servlet

Bertrand Guay-Paquet bernie at step.polymtl.ca
Thu Mar 27 20:05:24 GMT 2014


Forgot to mention regarding 4)

4) My tests seem to show that when a subscribed consumer throws an
exception in handleDelivery(), it consumes the rest of its buffered
messages and is then terminated.

This only happens if I don't do this:
channel.basicQos(1);

Setting the prefetch count to 1 makes the consumer shutdown right after 
an exception is thrown.


More information about the rabbitmq-discuss mailing list