<div>
<div>
<span>
<br>
</span>
<span></span>
<p style="color: #a0a0a0;">On Saturday, March 5, 2011 at 9:07 PM, Taek Joo Kim wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div>Hi, all.<br><br>In pika 0.5.2, I created multiple connections to rabbitmq, then made a<br>socket map and passed it to pika.asyncore_loop(). Then I could poll<br>multiple sockets. In pika 0.9.x, I saw the source code, but did not<br>find the way to do this. The purpose of making multiple connections is<br>to subscribe multiple queues.<br><br>I have two questions.<br>1. Is this a proper way to subscribe multiple queues?</div></div></span></blockquote><div>Just issue multiple channel.basic_consume commands to different queues with different callback mechanisms with any of the async connection adapters. You do not need multiple connections or channels to consume multiple queues.</div><div><br></div><div>With BlockingConnection there will be support for multiple queue consumers in the next release. </div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;"><span><div><div><span></span><span></span>2. If it is, is there any way to do this in 0.9.x?</div></div></span></blockquote><div>Check out the documentation at http://tonyg.github.com/pika, if it's not straight forward on how to get the 2nd queue consumer going, let me know.</div><div><br></div><div>Gavin</div>
</div>
</div>