qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Schloming <rafa...@redhat.com>
Subject Re: C++, Python: Setting Properties
Date Thu, 12 Feb 2009 13:48:11 GMT
Gordon Sim wrote:
> 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.

Ok, so to send a message without delivery properties or message 
properties you would just avoid calling the respective getter?

Is there a way to clear them?

--Rafael


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


Mime
View raw message