On 01/08/2015 02:56 PM, Hamid.Shahid wrote:
Thanks Gordon,
But is it better to use /message.setContent(msgString)/ or to use
/message.setContentObject(msgString)/?
Use Message::setContentObject(). If you use setContent() the data will
be sent as a sequence of bytes rather than a utf8 string.
(In AMQP 0-10, content was always bytes, and you indicated the way those
bytes should be interpreted using a MIME type in setContentType(). In
AMQP 1.0, this approach is still possible, but the recommended approach
I believe is to use the AMQP typesystem to encode the content, which is
why the setContentObject() method was needed).
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]