Hi Jerry,<br><br>Thanks for your reply!<br><br>And sorry about the confusion. I was talking about exchange to exchange binding. I&#39;m using Pika (python client lib). <br><br>This following code declares two exchanges and bind them together. What I don&#39;t understand is the second argument of the function call &quot;exchange_bind&quot;. It&#39;s called &quot;ticket&quot;, and is defaulted to 0. Have no idea what it means, though it works without any problems. <br>
<br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">channel.exchange_declare(exchange=&#39;broadcast&#39;,</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">���������������������������� type=&#39;fanout&#39;)</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">channel.exchange_declare(exchange=&#39;main&#39;,</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">���������������������������� type=&#39;direct&#39;)</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">channel.exchange_bind(None, <span style="color:rgb(204,0,0)">0</span>, &quot;broadcast&quot;, &quot;main&quot;, &quot;toABD&quot;)</span><br><br>Cheers,<br><br>Brian<br><br><div class="gmail_quote">
On Wed, Jan 11, 2012 at 12:56 PM, Jerry Kuch <span dir="ltr">&lt;<a href="mailto:jerryk@vmware.com">jerryk@vmware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, Brian...<br>
<br>
Apologies if I&#39;m not quite reading you correctly. �Do you mean<br>
*exchange-to-exchange* bindings as appeared in 2.1.1? �Which<br>
client(s) are you trying to get them working with? �Your snippet<br>
looks Ruby-ish?<br>
<br>
Best regards,<br>
Jerry<br>
<div><div class="h5"><br>
----- Original Message -----<br>
From: &quot;Brian Jing&quot; &lt;<a href="mailto:brian.newsgroup@gmail.com">brian.newsgroup@gmail.com</a>&gt;<br>
To: <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
Sent: Tuesday, January 10, 2012 5:31:25 PM<br>
Subject: [rabbitmq-discuss] About exchange bindings<br>
<br>
<br>
Hi there,<br>
<br>
RabbitMQ implemented exchange bindings as an extension to the AMQP protocol. However, I couldn&#39;t find detailed documentation about it.<br>
<br>
The function is declared as:<br>
def exchange_bind(self, callback=None, ticket=0, destination=None, source=None, routing_key=&#39;&#39;, nowait=False, arguments={}):<br>
<br>
My questions are:<br>
1. In the function definition, what does the argument &quot;ticket&quot; mean, and how to use it?<br>
2. What is the set of arguments for &quot;arguments = {}&quot;?<br>
<br>
It&#39;d be great if someone could explain with examples. Thanks heaps!<br>
<br>
Cheers,<br>
<br>
Brian<br>
<br>
<br>
<br>
</div></div>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br>