[rabbitmq-discuss] How to handle AcknowledgeMode.MANUAL acknowledgements within handleMessage() method at consumer end?
mklishin at gopivotal.com
Wed Jan 8 11:25:36 GMT 2014
On 8 Jan 2014, at 14:41, Rajasekhar P <sekhar434145 at gmail.com> wrote:
> I want to handle acknowledgements manually, because, if any error occurs while processing message it should not be deleted from the queue. For this I have used AcknowledgeMode.MANUAL , but am not getting how to set the acknowledgement after processing the message in handleMessage method. Can anyone tell me how to do that?
Section 3.11 in  suggests you are supposed to use Channel#basicAck from RabbitMQ Java client
Software Engineer, Pivotal/RabbitMQ
More information about the rabbitmq-discuss