[rabbitmq-discuss] Pika v0.9.5, how to get the routing key when consuming
Gavin M. Roy
gmr at myyearbook.com
Sun May 1 19:42:37 BST 2011
That does look correct, this is what your method parameter should look something like:
<Basic.Deliver(['consumer_tag=ctag0', 'redelivered=False', 'routing_key=test', 'delivery_tag=1', 'exchange='])>
Take a look at the examples at:
On Sunday, May 1, 2011 at 2:34 PM, Denis Conan wrote:
> Hi all,
> not being a Python programmer, it is difficult to find how the next lines from
> an old version of Pika must be written in v0.9.5:
> def callback(ch, method, properties, body):
> print " [x] %r:%r" % (method.routing_key, body,)
> More precisely, how to get the routing key of message consumed?
> Thanks in advance.
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss