qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Moravec <pmora...@redhat.com>
Subject Re: Sending objects to receivers
Date Wed, 17 Oct 2012 06:57:30 GMT
+1, I have seen this working already in a qpid project.


----- Original Message -----
> From: "Andy Goldstein" <andy.goldstein@redhat.com>
> To: users@qpid.apache.org
> Sent: Tuesday, October 16, 2012 6:48:15 PM
> Subject: Re: Sending objects to receivers
> 
> You could use something like Google Protocol Buffers to encode your
> object as a binary string to send it over the wire.
> 
> Andy
> 
> On Oct 16, 2012, at 12:46 PM, Rajesh Khan wrote:
> 
> > Thats an idea. However I was curious is there a better way to do
> > this ?
> > What if my object has lots of properties
> > 
> > On Tue, Oct 16, 2012 at 10:44 AM, Andy Goldstein
> > <andy.goldstein@redhat.com>wrote:
> > 
> >> Could you just take your class's properties and place them in a
> >> map?
> >> 
> >> Andy
> >> 
> >> On Oct 16, 2012, at 12:29 PM, Rajesh Khan wrote:
> >> 
> >>> While studying QPIDD I realized that I could send maps and lists
> >>> to
> >>> receivers like this
> >>> 
> >>>           qpid::types::Variant::Map content;
> >>>           content["id"] = 987654321;
> >>>           content["name"] = "Widget";
> >>>           content["percent"] = 0.99;
> >>>           encode(content, message);
> >>>           sender.send(message);
> >>> 
> >>> 
> >>> I wanted to know How could I send a customized object I created
> >>> from a
> >>> class. ?  Any suggestions ?
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> >> For additional commands, e-mail: users-help@qpid.apache.org
> >> 
> >> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message