qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gang, Litao" <litao.g...@jpmorgan.com>
Subject how to set discardUnroutable in qpid::messaging::message object.
Date Fri, 08 Jul 2011 18:33:56 GMT
Hello there,

I have a simple question on the C++ api.

I want to handle the case where the message destination is not reachable.  Right now, w/o
doing anything,  I got an error like

2011-07-08 10:53:17 warning Exception received from broker: not-found: not-found: Queue not
found: 7efc7c38-7e73-4aa4-9fca-84c0e38ad4b7 (qpid/broker/SessionAdapter.cpp:755) [caused by
2 \x08:\x01]
2011-07-08 10:53:17 error anonymous.4a1e7ce0-52ee-4186-9439-d6bafd54f5b1 error: Queue 7efc7c38-7e73-4aa4-9fca-84c0e38ad4b7
does not exist
terminate called after throwing an instance of 'qpid::messaging::NotFound'
  what():  Queue 7efc7c38-7e73-4aa4-9fca-84c0e38ad4b7 does not exist

It is caused by an unreachable queue.   If I use client::message, I can specify the deliveryProperty,
use setDiscardUnroutable<http://qpid.apache.org/apis/0.10/cpp/html/a00057.html#ae0ce53d8840f12035958f20779af474e>(true).
   But I am using messaging::message class, and the only method I guess I can use is setProperty().
 But I did not find any document, which property name I should use,and how to set it.

Could anybody shed some lights on this?

Thank you very much!


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message