On 01/08/2015 12:58 PM, Hamid.Shahid wrote:
Hi,

I have the following java jms code which sends a string message with with
some properties to a broker and this works fine.

/TextMessage message = session.createTextMessage(msgString);
String correlationId = "abc1";
message.setJMSCorrelationID(correlationId);
message.setObjectProperty("MessageType", msgType);
message.setObjectProperty("AppID", appID);
message.setJMSReplyTo(consumerDestination);
producer.send(message);
/

I want to know, what will be the 'correct' equivalent of this in *Qpid 0.28
C++ client using amqp 1.0*.
How can I create a /qpid::messaging::Message/ from /msgString /of type
/std::string/ and set properties on the message.

Should it be correct to use /message.setContentObject(msgString)/ and the
setting /message.setProperties("MessageType", msgType)/?

Yes, those are the correct methods.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to