activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Heitmann <>
Subject Re: How to clear queue other than pulling out the message
Date Thu, 17 Aug 2006 05:19:41 GMT

On Aug 16, 2006, at 9:55 PM, Balakumar Narayanasamy wrote:
> Is there is any of clearing queue faster other than pulling out
> message or deleting the existing queue and extracting again from  
> source
> file. Note:- I am using persistent Queue

There's a purge() method available on queues that is exposed via JMX.  
It will purge all messages not in prefetch buffers. In your case if  
your consumers are dead then you will have no outstanding messages in  
prefetch, so it should clear all of them.


View raw message