[rabbitmq-discuss] it correct way to creating consumer as an daemon thread?

sam_mis sameek at arosys.com
Tue Feb 8 04:15:25 GMT 2011


Hi

i am using Rabbitmq Java client library. consumer that are infinite run and
poll queue where message are arrives.


         boolean runInfinite = true;
         while (runInfinite)
          {
                 QueueingConsumer.Delivery task;
             try 
               {
               task= consumer.nextDelivery();
               } 
             catch (InterruptedException ie) 
               {
               continue;
               }
         }
consumer infinitely run i want to make it daemon thread.it is correct way to
make it daemon thread and there are other option.

Thanks

-- 
View this message in context: http://old.nabble.com/it-correct-way-to-creating-consumer-as-an-daemon-thread--tp30870170p30870170.html
Sent from the RabbitMQ mailing list archive at Nabble.com.



More information about the rabbitmq-discuss mailing list