[rabbitmq-discuss] Peek into a queue

Gavin Bong vinorasmus at gmail.com
Thu Nov 20 07:24:42 GMT 2008


Hi,

Does AMQP support the ability to peek into the contents of a Queue
without actually dequeueing ?

I tried doing this and but it is doing an actual dequeue.

            channel.txSelect();
            GetResponse response = channel.basicGet( tuple.ticket, Q, true );

            String s = new String( response.getBody(), "UTF-8" );
            System.out.println( "received = " + s );

            channel.txRollback();

Thanks.

Regards,

Gavin




More information about the rabbitmq-discuss mailing list