[rabbitmq-discuss] View messages in queue
Ashok Anand
ashok.anand at gmail.com
Fri May 3 10:43:13 BST 2013
Great! thanks, this was quite useful.
On Fri, May 3, 2013 at 3:07 PM, Emile Joubert <emile at rabbitmq.com> wrote:
>
> On 03/05/13 10:15, Ashok Anand wrote:
> > 1) what should I use to go through all messages in the queue,
> > currently, "./rabbitmqadmin get queue=qname requeue=true" gives only
> > head. does any such interface exists currently to get list of all
> > messages in the queue?
>
> You can retrieve more than one message by supplying the "count" parameter.
>
> I would recommend using a client library and writing the software to
> accomplish your goals. For your use-case b) all the operations (message
> retrieval, selective acknowledgement and requeueing) will need to be
> performed on the same channel, which precludes composing a sequence with
> multiple invocations of a commandline utility.
>
> > 2) Just the re-delivery flag is set, right? so the consume should not
> > assume that it is a retrial of the same message?
>
> The consumer can't distinguish between a message that was requeued due
> to exceptional circumstances (e.g. network disconnection while a message
> was unacknowledged) and a message that was explicitly requeued.
>
>
>
>
> -Emile
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130503/453bb535/attachment.htm>
More information about the rabbitmq-discuss
mailing list