<div>See <a href="http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-April/012458.html">http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-April/012458.html</a>.</div><div><br></div><div>AMQP defines no-local as a parameter to basicConsume which is intended to provide the feature you're requesting. However, AFAIK support for no-local is not implemented in RabbitMQ.</div>
<div><div><br></div><div>-Randall<br><br><div class="gmail_quote">On Wed, Jun 20, 2012 at 2:38 PM, <span dir="ltr"><<a href="mailto:m.luchak@smartasking.com" target="_blank">m.luchak@smartasking.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="arial"><p style="margin:0;padding:0"><span style="font-size:10pt">Afternoon Everybody,</span></p>
<div><span style="font-family:arial;font-size:10pt">
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
<p style="margin:0;padding:0;margin:0;padding:0">I would like to implement a feature where a Rabbit client does not receive any messages published by itself. The client will be listening on an exclusive Q that is bound to exactly one exchange. That exchange will be bound to multiple exchanges.</p>
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
<p style="margin:0;padding:0;margin:0;padding:0">I am about to implement this feature by filtering the messages after they have been received by the client using the props builder to identify the sender, but, I would like to know if there is a silver bullet that I have overlooked - some way to avoid receiving the messages in the first place (without cludging together all of the "other users" as binding keys).</p>
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
<p style="margin:0;padding:0;margin:0;padding:0">Any quick fix that I am ignorant of?</p>
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
<p style="margin:0;padding:0;margin:0;padding:0">Using:</p>
<p style="margin:0;padding:0;margin:0;padding:0">Rabbit 2.8.1 broker running on Ubuntu 11</p>
<p style="margin:0;padding:0;margin:0;padding:0">Java and C++ clients</p>
<p style="margin:0;padding:0;margin:0;padding:0">persistent topic exchanges</p>
<p style="margin:0;padding:0;margin:0;padding:0">persistent Qs</p>
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
<p style="margin:0;padding:0;margin:0;padding:0">Flow:</p>
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
<p style="margin:0;padding:0;margin:0;padding:0">User1_Q1 ->publish-> Ex99</p>
<p style="margin:0;padding:0;margin:0;padding:0">User2_Q2 <-receive <span style="font-size:10pt"><- Ex2 </span><span style="font-size:10pt"><- Ex99</span></p>
<p style="margin:0;padding:0;margin:0;padding:0">User3_Q3 <-receive <- Ex3<span style="font-size:10pt"> </span><span style="font-size:10pt"><- Ex99</span></p>
<p style="margin:0;padding:0;margin:0;padding:0">User1_Q1 <- Ex1<span style="font-size:10pt"> </span> x receive x <span style="font-size:10pt"> Ex99</span><span style="font-size:10pt"> //user who publishes message does not receive</span></p>
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
<p style="margin:0;padding:0;margin:0;padding:0">User3_Q3 ->publish-> <span style="font-size:10pt">Ex99</span></p>
<p style="margin:0;padding:0;margin:0;padding:0">User1_Q1 <-receive <span style="font-size:10pt"><- Ex1 </span><span style="font-size:10pt"><- Ex99</span></p>
<p style="margin:0;padding:0;margin:0;padding:0">User2_Q2 <-receive <span style="font-size:10pt"><- Ex2 </span><span style="font-size:10pt"><- Ex99</span></p>
<p style="margin:0;padding:0;margin:0;padding:0">User3_Q3 <span style="font-size:10pt"> <- Ex3<span style="font-size:10pt"> </span><span style="font-size:10pt"> x receive x Ex99</span> </span><span style="font-size:10pt">//user who publishes message does not receive</span></p>
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
<p style="margin:0;padding:0;margin:0;padding:0"> </p>
</span></div></font><br>_______________________________________________<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>
<br></blockquote></div><br></div></div>