[rabbitmq-discuss] connecting to an exchange and queues

Simon MacMullen simon at rabbitmq.com
Tue Jan 15 17:50:06 GMT 2013


On 15/01/13 17:46, jdepp wrote:
> what happens to a message that has an incorrect or unknown routing key for a
> specific exchange. Does it get added to any queue?

Not by default.

If you want to detect this you can either:

1) Declare an alternate exchange for the specific exchange 
(http://www.rabbitmq.com/ae.html)

2) Have your clients publish with mandatory=true, and then check for 
basic.return messages coming back to indicate that messages could not be 
routed.

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list