I\'m invoking:
GetResponse response = channel.basicGet(\"some.queue\", false); // no auto-ack
....
channel.basicAck(deliveryTag, ...);
Howe
When doing ack
immediately after the get
it works fine. However, in my case, they were separated by a request. And spring's template closes the channel and connection on each execution. So there are three options:
In the former two cases you can't do it with spring's RabbitTemplate