Thanks Gordon, I have already noticed that I am getting PN_LINK_REMOTE_CLOSE event type. But I am not able to get any error. pn_error_text(pn_link_error(pn_event_link(pEvent))) returns NULL.
Other thing that I do not understand is, that after sending erroneous message I am still able to send messages (this time with correct subject) to broker without any problem and messages are delivered. I thought that event type PN_LINK_REMOTE_CLOSE indicated that link was on remote side closed. 2015-09-16 14:53 GMT+02:00 Gordon Sim <g...@redhat.com>: > On 09/16/2015 01:36 PM, Tomáš Šoltys wrote: > >> I'm using reactor API and the broker is c++ broker from qpid 0.34 >> > > In that case the broker closes the link with an error condition. So on the > client you should be able to be notified of the error by handling the > appropriate event. If you are using MessagingHandler you can do that by > implementing on_link_closing() or on_link_error(). Otherwise you can > implement on_link_remote_close(). > > > -- Tomáš Šoltys tomas.sol...@gmail.com http://www.range-software.com (+420) 776-843-663