You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Ivan Pechorin <iv...@gmail.com> on 2010/02/12 13:41:02 UTC

ActiveMQ-CPP - how to purge a queue?

Hi!

Is there any way to purge a queue from a C++ application that uses
ActiveMQ-CPP client?

Best regards, Ivan
-- 
View this message in context: http://old.nabble.com/ActiveMQ-CPP---how-to-purge-a-queue--tp27562975p27562975.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: ActiveMQ-CPP - how to purge a queue?

Posted by Timothy Bish <ta...@gmail.com>.
On Fri, 2010-02-12 at 04:41 -0800, Ivan Pechorin wrote:
> Hi!
> 
> Is there any way to purge a queue from a C++ application that uses
> ActiveMQ-CPP client?
> 
> Best regards, Ivan

You can attempt to delete a Destination from the ActiveMQConnection
class' deleteDestination method.  This works only if there are no
subscriptions on that destination.

Regards
Tim.

-- 
Tim Bish

Open Source Integration: http://fusesource.com
ActiveMQ in Action: http://www.manning.com/snyder/

Follow me on Twitter: http://twitter.com/tabish121
My Blog: http://timbish.blogspot.com/