Hi

Thanks for your reply. 

purge() removes all messages from the queue. I would like to get hold of all
messages in the queue at that instant. Is there a way to achieve this? I saw
something close to that in ManagedRegionBroker's getSubscriberMessages. But
I wasn't sure how to use that to get the messages. Any thougts on that?

Thanks
WRV



Andreas Gies-3 wrote:
> 
> Hi there,
> 
> you can use the purge() method either via the API or via JMX.
> 
> HTH
> Andreas
> 
> On Apr 8, 2009, at 9:12 AM, venkateshwr wrote:
> 
>>
>> Hi
>>
>> Is there a way to drain messages from a queue programmatically. For
>> instance, when I use a java queue (LinkedBlockingQueue), I can drain  
>> all
>> messages from the queue at that instant. Is there something  
>> available in
>> ActiveMQ?
>>
>> Thanks
>> WRV
>> -- 
>> View this message in context:
>> http://www.nabble.com/Draining-messages-from-a-queue-tp22944607p22944607.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
> 
> ---
> Mit freundlichen Grüssen - Kind Regards
> Andreas Gies
> Principal Consultant
> Open Source Center of Competence
> 
> Progress Software GmbH
> Agrippinawerft 26
> 50678 Köln
> 
> E-Mail        [email protected]
> Direct Line   +49 (0)9953 980349
> Mobile        +49 (0)170 5759611
> Skype         +44 (0)20 3239 2922
> Skype         +353 (0)1 443 4971
> Skype         +1 (0)781 262 0168
> 
> http://www.progress.com
> http://fusesource.com
> http://open-source-adventures.blogspot.com
> 
> 
> 
> -------------------------------------------------------
> Progress Software GmbH
> Sitz der Gesellschaft: Agrippinawerft 26, 50678 Koeln;
> Niederlassung: Fuerstenrieder Str. 279, 81377 Muenchen
> Amtsgericht Koeln, HRB 15620;
> Geschaeftsfuehrung: David Ireland
> -------------------------------------------------------
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Draining-messages-from-a-queue-tp22944607p22965669.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to