[rabbitmq-discuss] How to poll queue get new message using Java?

Emile Joubert emile at rabbitmq.com
Mon Feb 7 10:21:59 GMT 2011

Hi Sam,

> I am using Rabbitmq Java client library.how i am know that my queue get ,new
> message.there is any method that give me notification that new message is
> come on queue and my queue is empty.

If I understand you question correctly, you want notification when 
messages arrive in a queue.

You can have the message delivered to a consumer asynchronously by 
setting up a subscription. The Java API guide has more details:




More information about the rabbitmq-discuss mailing list