[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:
http://pika.github.com/examples.html
or in:
https://github.com/pika/pika/tree/master/examples
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.
>
> Denis
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110501/2a373faa/attachment.htm>
More information about the rabbitmq-discuss
mailing list