[rabbitmq-discuss] RabbitMQ basic.get and acknowledgement
Marek Majkowski
majek04 at gmail.com
Fri Oct 21 15:57:48 BST 2011
On Fri, Oct 21, 2011 at 15:39, Bozhidar Bozhanov
<bozhidar.bozhanov at gmail.com> wrote:
> That one I figured out myself :) but what could it be, given default
> setup, and the above code?
There is not much to be said about given code.
Can you supply us with a runnable code?
> On Fri, Oct 21, 2011 at 5:27 PM, Marek Majkowski <majek04 at gmail.com> wrote:
>> On Fri, Oct 21, 2011 at 15:07, Bozhidar Bozhanov
>> <bozhidar.bozhanov at gmail.com> wrote:
>>> Well, I expected it to work like that, but it doesn't. The message
>>> stays "Ready".
>>
>> You must be doing something wrong.
>>
>>
>>
>>>
>>>
>>> On Fri, Oct 21, 2011 at 4:49 PM, Marek Majkowski <majek04 at gmail.com> wrote:
>>>> 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