[rabbitmq-discuss] pika.channel.basic_consume
Marek Majkowski
majek04 at gmail.com
Fri Jan 28 10:23:33 GMT 2011
On Thu, Jan 27, 2011 at 19:52, Marcin Krol <mrkafk at gmail.com> wrote:
> Can channel.basic_consume handle more than 1 callback?
>
> But when I use more than one callback (both on exclusive queues), only
> one of them works.
>
> chan.basic_consume(on_response_distrib, no_ack=True, queue=myqueue)
>
> chan.basic_consume(on_response_rdonly, no_ack=True, queue=myqueue)
>
> When I do setup_distrib(node) AND setup_rdonly(node), only rdonly queues
> work.
>
> When I do one or the other, either works.
As far as I can tell this is the correct behaviour. If you want the same
message to be delivered to multiple destinations use multiple queues.
Cheers,
Marek
More information about the rabbitmq-discuss
mailing list