Hi Simon and Simone,<br><br>Thanks very much for your clarification! Now it works for me! <br><br>The reason why it didn&#39;t work before was that I sent messages inside the callback on_queue_declared, which didn&#39;t get executed when I removed the queue declaration (thats why I thought declaring the queue on upstream server was required). What I did to resolve it was to create a random exclusive queue in order to get the callback invoked.<br>
<br>Thanks again!<br><br>Brian<br><br><div class="gmail_quote">On Tue, Jan 17, 2012 at 10:00 PM, Simon MacMullen <span dir="ltr">&lt;<a href="mailto:simon@rabbitmq.com">simon@rabbitmq.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 17/01/12 06:50, Brian Jing wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;ve played with the federation plugin a little. It seems that in order<br>
to send a message to a queue on the downstream server, the same queue<br>
has to be declared on the upstream server for federation to work?<br>
</blockquote>
<br></div>
No, that should definitely not be the case.<br>
<br>
The federation plugin is meant to send bindings upstream automatically (so that it does not just send all messages upstream -&gt; downstream, but only the ones that will be routed once they get downstream).<br>
<br>
When you bind a queue to the downstream exchange with routing key A, you should see a similar binding appear between the upstream exchange and the intermediate upstream exchange (called something like &quot;federation: name -&gt; name {A|B}&quot;. Is that happening?<br>

<br>
Cheers, Simon<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, VMware</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
</div></div></blockquote></div><br>