RickW wrote:
In a publisher client I'd like to detect the condition where the
broker rejects a message because (1) the target queue size has been
reached and (2) I've selected the REJECT QueueSizePolicy. According
to Red Hat's Messaging_User_Guide "The publisher of a message that
exceeds the limit receives an exception". What exception will be
thrown? (I assume catch(const exception& e) is too broad because
there are other exceptions that may have to be handled differently.)

A qpid::framing::ResourceLimitExceededException (which is a subclass of qpid::SessionException) will be thrown. It is defined in qpid/framing/reply_exceptions.h.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to