[rabbitmq-discuss] Unable to consume message from queue?

Valentin BERNARD vbernard42 at gmail.com
Mon Nov 7 08:50:12 GMT 2011


Hi,

Just to be sure that everything is clear, the
'messages_unacknowledged' field displays the number of messages that
*have been delivered* to the consumer, but have not been acknowledged
yet.

> 4. message
>
> -> it's give me count 0  this is unexpected result because two messages are
>  there in the queue which is ready to derived to client.

I guess you meant 'messages_ready' here? That's consistent if you sent
two messages that have been delivered to a consumer and are waiting to
be acknowledged. They're not 'ready' anymore, so you see them in the
'messages_unacknowledged' and 'messages' (total) field, but not in
'messages_ready'.

Concerning your code snippet, the definition of
rabbitmqUtil.getMessageFromQueue may help tracking the problem.

Regards,

Valentin.

On 7 nov, 06:50, sameekmishra <sam... at arosys.com> wrote:
> Hi
>
> I am using rabbitmq server 2.1.0 using java client API i have published
> messages into queue,but i'm not able to consume those publish message from
> queue. i have checked details of following points using rabbitmqctl command:
>
> 1. list_queue
>
> ->  define queue is available in list.
>
> 2. message_unacknowledge
>
> -> count 2 because i have publish two messages in queue those are
> unacknowledge.
>
> 3. message
>
> -> count 2 is correct
>
> 4. message
>
> -> it's give me count 0  this is unexpected result because two messages are
> there in the queue which is ready to derived to client.
>
> uesed code snipped  https://gist.github.com/1344262https://gist.github.com/1344262
> please help me where is the problem in consumer to ready those messages.
>
> Thanks
> --
> View this message in context:http://old.nabble.com/Unable-to-consume-message-from-queue--tp3278870...
> Sent from the RabbitMQ mailing list archive at Nabble.com.
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-disc... at lists.rabbitmq.comhttps://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list