qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Goldstein <andy.goldst...@redhat.com>
Subject Re: Sending objects to receivers
Date Tue, 16 Oct 2012 16:48:15 GMT
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


Mime
View raw message