[rabbitmq-discuss] RabbitMQ basic.get and acknowledgement
majek04 at gmail.com
Fri Oct 21 14:49:03 BST 2011
basicGet gets only one message. Last message.
And this message will be marked as 'unacknowledged'
until you ack it (or unmark it in the other way, like
abruptly closing a connection).
On Fri, Oct 21, 2011 at 14:26, Bozhidar Bozhanov
<bozhidar.bozhanov at gmail.com> wrote:
> I'm invoking:
> GetResponse response = channel.basicGet("some.queue", false); // no
> channel.basicAck(deliveryTag, ...);
> However, when I invoke basicGet, the messages in the queue stay in
> "Ready", rather than in "Unacknowledged". I want them to be in
> unacknowledged, so that I can either basic.ack them (thus discarding
> them from the queue), or basic.nack them
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
More information about the rabbitmq-discuss