You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Elliotte Harold <er...@gmail.com> on 2007/08/06 17:35:45 UTC

Clearing queue

Is there anyway to remotely tell a queue to clear or reset itself?

For that matter, how would one do that locally?

-- 
Elliotte Rusty Harold
erharold@gmail.com

Re: Clearing queue

Posted by James Strachan <ja...@gmail.com>.
On 8/6/07, Elliotte Harold <er...@gmail.com> wrote:
> Is there anyway to remotely tell a queue to clear or reset itself?
>
> For that matter, how would one do that locally?

There's a brief FAQ entry:
http://activemq.apache.org/how-do-i-purge-a-queue.html


You can use the operations on the MBeans...
http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/jmx/QueueViewMBean.html
in particular purge()

or you could delete the queue via removeQueue(String)/removeTopic(String)
http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/jmx/BrokerViewMBean.html

-- 
James
-------
http://macstrac.blogspot.com/