Thanks for the suggestion. I found autoDelete in one of the samples as well. My understanding of that option is that it will delete messages if there are any left in the queue. I wouldn't want messages to be deleted if the application falls over.

I appreciate the link. I went back to the 0.5 reference and found queueDeclare as well as queueDelete.

Thanks!
//Bill

On 11/11/2010 05:22 AM, [email protected] wrote:
Have you tried :

session.queueDeclare(arg::autoDelete=true, ...) ;

?

this will delete the queue when the session closes. you can also prefix the 
queue name with a string like 'dyn_' so they're easily identifiable with the 
'qpid-config queues' tool.

this is what I've been using for the API reference :

http://qpid.apache.org/apis/0.6/cpp/html/index.html

caveat : I'm not sure if this is the latest or best API reference, maybe 
someone else would care to enlighten us

hope this helps,

Warwick

-----Original Message-----
From: Bill Whiting [mailto:[email protected]]
Sent: Wednesday, 10 November, 2010 10:58 PM
To: [email protected]
Subject: c++ delete queue

I'm trying to create a temporary queue and delete it when it's no longer
needed.

Is there a method for deleting a queue, essentially the reverse of
session.queueDeclare()

I can't find queueDeclare in the documentation.  Can someone point me in
the right direction?

Thanks,
//Bill

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]




---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to