[rabbitmq-discuss] txAMQP and multiple queues per channel

David Sackett rabbitmq-discuss at davidsackett.com
Wed Oct 22 09:21:33 BST 2008

Hi Esteve,

Thanks for the link and the example. The example worked great after I added
vhost to line 78:

f = _InstanceFactory(reactor, AMQClient(delegate, qpid.spec.load(specFile)),


f = _InstanceFactory(reactor, AMQClient(delegate, qpid.spec.load(specFile),
vhost='/'), d)

For some reason RabbitMQ on my PC was not authorizing the default vhost
('localhost') in your script. I updated my test software following your
example and it works perfectly so far!

Do you plan to merge use-queues into the trunk at some point?

Thanks again this has really helped me out!

Best regards,


On Wed, Oct 22, 2008 at 2:42 AM, Esteve Fernandez <esteve at sindominio.net>wrote:

> Hi David
> On Tuesday 21 October 2008 03:15:26 David Sackett wrote:
> > What is the correct way to consume from multiple queues with txAMPQ?
> Should
> > each channel only consume from one queue? How can I safely initialise all
> > my channels and queues and latter consume from other queues once in
> > operation?
> Sorry, that code was meant to prove that txAMQP supported multiple
> channels,
> but I must admit that it was quite crappy. Take a look at the unit tests
> found under the test directory. The test_example test is pretty complete
> and
> easy to follow.
> Back when txAMQP was released, I decided to separate the client from the
> queueing code, letting developers to write their own queues. There's a
> simple
> queueing channel class in the testlib.py file that you can use, through.
> Anyway, I reorganized the source code and joined both pieces, you may get
> it
> from:
> bzr branch lp:~txamqpteam/txamqp/use-queues
> Cheers.
> PS: I attached a simple example of how to use the queueing code, let me
> know
> if it works as expected
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://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/20081022/6641029d/attachment.htm 

More information about the rabbitmq-discuss mailing list