Hi Jerry,<br><br>Thanks for your reply!<br><br>And sorry about the confusion. I was talking about exchange to exchange binding. I'm using Pika (python client lib). <br><br>This following code declares two exchanges and bind them together. What I don't understand is the second argument of the function call "exchange_bind". It's called "ticket", 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='broadcast',</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)"> type='fanout')</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">channel.exchange_declare(exchange='main',</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)"> type='direct')</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>, "broadcast", "main", "toABD")</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"><<a href="mailto:jerryk@vmware.com">jerryk@vmware.com</a>></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'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: "Brian Jing" <<a href="mailto:brian.newsgroup@gmail.com">brian.newsgroup@gmail.com</a>><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'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='', nowait=False, arguments={}):<br>
<br>
My questions are:<br>
1. In the function definition, what does the argument "ticket" mean, and how to use it?<br>
2. What is the set of arguments for "arguments = {}"?<br>
<br>
It'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>