qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: C++, Python: Setting Properties
Date Thu, 12 Feb 2009 13:42:58 GMT
Rafael Schloming wrote:
> Jonathan Robie wrote:
>> C++:
>> =====
>>
>> Message message;
>> message.getDeliveryProperties().setRoutingKey("request");
>> message.getMessageProperties().setReplyTo(ReplyTo("amq.direct", 
>> "reply_to_key");
>>
>> In C++, I create a message, then set its properties.
> 
> How does this work? Are the delivery properties and message properties 
> objects created implicitly by the declaration, created internally on 
> demand by the getters, or would this code actually throw an exception 
> because they haven't been set yet?

They are created on demand by the getters.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Mime
View raw message