activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Tarau <...@daxtechnologies.com>
Subject Re: Remove all messages from a queue
Date Mon, 15 May 2006 20:32:43 GMT

Hello guys, how about no JMX? :)

Adrian Tarau wrote:
> And without JMX? :)
>
> I saw that org.apache.activemq.broker.region.Queue expose that purge, 
> but how can I reach this class knowing my queue?
>
> James Strachan wrote:
>> On 5/12/06, Adrian Tarau <ady@daxtechnologies.com> wrote:
>>> How could I remove all messages from a queue? Thanks.
>>>
>>> PS : Except consuming one by one :)
>>
>> Try using JMX....
>> http://activemq.org/site/jmx.html
>>
>> the Queue mbean has a pureQueue method
>> http://activemq.codehaus.org/maven/apidocs/org/apache/activemq/broker/jmx/QueueViewMBean.html#purge()

>>
>>
>


Mime
View raw message