On 07/09/2015 03:25 PM, Jan Rinze wrote:
What's the equivalent of the JMS mandatory_topic flag in C++?

Sending a message to an direct exchange that has no alternative exchange
setup and no binding for the specified key will always silently drop the
message. There seems to be no documentation on how to receive an exception
in C++ like in the JMS implementation.

Best regards,
Jan Rinze.

 From the documentation of the JMS API:
------------------------------
Mandatory Messages
With this feature, publishing a message with a routing key for which no
binding exists on the exchange will result in the message being returned to
the publisher's connection.

The mandatory flag was a feature of the 0-8/0-9/0-9-1 protocols which aren't supported by any of the c++ APIs from Qpid.

In AMQP 0-10 the discard-unroutable and immediate delivery properties are defined to give similar (though not identical) behaviour. Unfortunately are not currently settable through qpid::messaging (the c++ API for which there is 0-10 support). (They aren't supported by the c++ broker either).

For AMQP 1.0 there is no equivalent defined in the specification.

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

Reply via email to