qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: QPid 0.28 amqp1.0 Java vs C++ client
Date Thu, 08 Jan 2015 14:48:22 GMT
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: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message