[rabbitmq-discuss] Initiating queue monitoring, but returning to main method with indication of success

Simon MacMullen simon at rabbitmq.com
Wed Feb 22 12:52:18 GMT 2012


On 22/02/12 12:14, McMahon, James S (TASC) wrote:
> The source of my confusion is piecing this all together. Would I
> simply replace this

<snip>

> with something like the following?

<snip>

Yes.

> Does this get invoked every time a message arrives for my queue
> through the direct exchange?

Yes.

> What purpose does the   channel.basicAck(deliveryTag, false);
> serve?

See the section under "Message Acknowledgement" at:

http://www.rabbitmq.com/tutorials/tutorial-two-java.html

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list