[rabbitmq-discuss] RabbitMQ basic.get and acknowledgement
bozhidar.bozhanov at gmail.com
Fri Oct 21 15:07:24 BST 2011
Well, I expected it to work like that, but it doesn't. The message
On Fri, Oct 21, 2011 at 4:49 PM, Marek Majkowski <majek04 at gmail.com> wrote:
> 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