activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Clearing queue
Date Mon, 06 Aug 2007 15:44:36 GMT
On 8/6/07, Elliotte Harold <erharold@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/

Mime
View raw message