[rabbitmq-discuss] same routing key for multiple queue bindings in multiple exchanges

JETZER Adrian adrian.jetzer at efgfp.com
Thu Nov 4 11:11:20 GMT 2010


Hello 

I just wanted to confirm an "issue" I just discovered.

It looks to me that routing keys must be unique in the entire broker. We
use the same routing-key-name for two queue bindings.

channel.queueBind("queue1", "exchange_a", "routing_key");
channel.queueBind("queue2", "exchange_b", "routing_key");

The request we send to the "routing_key" gets sometimes picked up also
by "queue2", although we say "exchange_a" in the basicPublish command.
 
channel.basicPublish("exchange_a", "routing_key", props, body);

So is this a bug or a feature?

Thanks,
Adrian

==== The EFG Mail Gateway made the following annotation ====

This message is for the addressee only and may contain confidential or
privileged information. You must delete and not use it if you are not
the intended recipient. It may not be secure or error-free. All e-mail
communications to and from the EFG Financial Products Group may be monitored.
Processing of incoming e-mails cannot be guaranteed. Any views expressed
in this message are those of the individual sender. This message is for
information purposes only. All liability of the EFG Financial Products Group
and its entities for any damages resulting from e-mail use is excluded.
US persons are kindly requested to read the important legal information
presented at following URL: http://www.efgfp.com. If you suspect that the
message may have been intercepted or amended, please call the sender.
Should you require any further information, please contact the Compliance
Manager on compliance at efgfp.com.
============================================================


More information about the rabbitmq-discuss mailing list