[rabbitmq-discuss] Consuming from multiple queues

Ilya Sterin sterini at gmail.com
Thu Jan 28 16:03:19 GMT 2010


Awesome, thanks, that works.

Ilya

On Wed, Jan 27, 2010 at 6:10 PM, Matthias Radestock <matthias at lshift.net> wrote:
> Ilya,
>
> Ilya Sterin wrote:
>>
>> how can a single consumer listen to multiple queues and process
>> messages as they arrive on either of the queues.
>
> You should be able to take the following line from your code
>
>> channel.basicConsume(queueName, false, consumer);
>
> and repeat it for every queue you want to consume from, using the same
> consumer object.
>
>
> Regards,
>
> Matthias.
>




More information about the rabbitmq-discuss mailing list