On 07/21/2015 05:14 PM, Robbie Gemmell wrote:
The hello_world.cpp example for Qpid Messaging C++ currently sends its
message by doing "sender.send(Message("Hello world!"));" which causes
it to send a data body section containing the bytes, when using AMQP
1.0.

Aleternatively, doing this:

     Message msg;
     msg.setContentObject("Hello World!");
     msg.getContentObject().setEncoding("utf8");
     sender.send(msg);

results in the payload sent by the client changing to an amqp-value
body section containing a utf8 string.

The other examples appear to use setContentObject already when sending
strings. Is there any reaosn not to do the same for the simple hello
world example?

That would be a sensible change.


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

Reply via email to