On 07/19/2011 03:30 AM, sreuland wrote:
Having a problem with c++ 0.10 client sending messages to a headers exchange
on a java 0.10 broker. Is this the correct method for c++ client to use when
appending ascii string header values to an amqp message?

qpid::messaging::Message.setProperty("xyz_header","XYZ123");

Try adding a line after that something like the following:

  msg.getProperties()["xyz_header"].setEncoding("utf8");

That will tell the library to encode the header as a utf8 string (there is no checking that it is valid utf8), and will indicate the java broker should treat it as a string rather than a byte array.

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

Reply via email to