I'll apply the same to the .NET Binding example.

----- Original Message -----
> From: "Gordon Sim" <[email protected]>
> To: [email protected]
> Sent: Monday, July 27, 2015 7:15:44 AM
> Subject: Re: change hello_world.cpp example to use setContentObject ?
> 
> 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]
> 
> 

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

Reply via email to