[rabbitmq-discuss] Example of DefaultBasicConsumer use

Tony Garnock-Jones tonyg at lshift.net
Fri Sep 12 12:51:27 BST 2008

Hi all,

I've just committed
which is an example of consuming from a queue using the very low-level
DefaultBasicConsumer, rather than using the higher-level
QueueingBasicConsumer or Subscription objects.

This can be useful for those wanting to avoid running background threads
of their own simply to get asynchronous deliveries from queues. Be
warned, however, by the comments in the API docs for
DefaultBasicConsumer [1] and by the details in section 2.9 of the user
guide [2]!



 [][][] Tony Garnock-Jones     | Mob: +44 (0)7905 974 211
   [][] LShift Ltd             | Tel: +44 (0)20 7729 7060
 []  [] http://www.lshift.net/ | Email: tonyg at lshift.net

More information about the rabbitmq-discuss mailing list