[rabbitmq-discuss] A message is sent but no queue to listen.
Emile Joubert
emile at rabbitmq.com
Wed Mar 30 10:31:04 BST 2011
On 30/03/11 09:02, mysurf mail wrote:
> I have two more questions regarding the rabbitmq mechanism
> 1. if a message is produced with a routing key and no queue is bounded
> to that key. where does it go ? Is it deleted?
By default unroutable messages are discarded. If the mandatory flag was
set then the message will be returned using the basic.return method. You
can receive these messages by registering a ReturnListener if using Java.
Also look at alternate exchanges, which are another way of dealing with
messages that cannot be routed, either because there were no bound
queues or no matching bindings:
http://www.rabbitmq.com/extensions.html#alternate-exchange
> 2. Upon producing two messages I get "attempt to use a closed channel"
> on the second produced command.
That means that an exception was raised by the server upon publication
of the first message. Check that the exchange you are publishing to
exists. The broker logfile should contain further information.
Regards
Emile
More information about the rabbitmq-discuss
mailing list