[rabbitmq-discuss] Pika + Tornado Example
Gavin M. Roy
gmr at myyearbook.com
Sun Jan 29 17:04:34 GMT 2012
Looping in from an off-list discussion, the solution was to move the queue name assignment to the on_queue_declared method (line 83 of Aamir's code) using the frame object passed into the function to get the queue name from the method frame object associated with the frame argument.
On Sunday, January 29, 2012 at 9:08 AM, Aamir Khan wrote:
> Hi
>
> I am trying to implement Pub/Sub model using Pika and Tornado. First step is to create queues with random names assigned by rabbitMQ. I have tried to change the code of demo_tornado.py[0] little bit so as to have random queue names. But it didn't work.
> My changed source code is here[1].
>
> [0] => https://github.com/pika/pika/blob/master/examples/demo_tornado.py
> [1] => https://github.com/syst3mw0rm/pika/blob/master/examples/demo_tornado.py
>
> Am i doing something wrong ?
>
>
>
>
> Aamir Khan | 3rd Year | Computer Science & Engineering | IIT Roorkee
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com (mailto: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/20120129/3aa6b0aa/attachment.htm>
More information about the rabbitmq-discuss
mailing list