[rabbitmq-discuss] another approach to retrieve message from queue?

sam_mis sameek at arosys.com
Thu Oct 14 07:35:45 BST 2010


Hi

i am using the following code to read an queue and extract the messages from
queue. I want to know that there is another approach to retrieve message
from queue? if there is another approach please describe the details
information to get the messages from queue. 

 while (runInfinite)
 {
     QueueingConsumer.Delivery delivery;
            try
            {
              delivery = consumer.nextDelivery();
            } catch (InterruptedException ie)
            {
               continue;
            }
         System.out.println("Message received-"
+ new String(delivery.getBody()));

file included that contain the  code for reading and extracting message:
--------------------------------------------------------------------------
http://old.nabble.com/file/p29959643/Result.java Result.java 

Thanks

-- 
View this message in context: http://old.nabble.com/another-approach-to-retrieve-message-from-queue--tp29959643p29959643.html
Sent from the RabbitMQ mailing list archive at Nabble.com.



More information about the rabbitmq-discuss mailing list