On 07/13/2012 10:34 AM, Toralf Lund wrote:
What happens if I send a message to an exchange without any queues
connected to it? Are they just thrown away? I'm assuming that they are,
and that raises another question: Is there any way I can know if a
message I just sent reached a queue, without actually checking queues
directly?

You can define an alternate exchange for the exchange in question. If that is defined then messages which could not be routed to a queue will be re-routed to the alternate exchange.

That allows you to subscribe and receive such unrouted messages. Its a little clunky, but it works and fits in well with existing clients as all they need to be able to do is subscribe and receive messages.

In theory, with AMQP 0-10, by setting the accept-mode on the transfer you send, you can instead cause the broker to send back a message-reject. However (a) the c++ broker does not implement this[1] (not sure about the java broker), and (b) the clients don't in general handle the rejects in a useful way.

[1] https://issues.apache.org/jira/browse/QPID-1490





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to