[rabbitmq-discuss] RabbitMQ basic.get and acknowledgement

Marek Majkowski majek04 at gmail.com
Fri Oct 21 14:49:03 BST 2011


Hi,

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).

Cheers,
  Marek

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
> auto-ack
> ....
> 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
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>


More information about the rabbitmq-discuss mailing list