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 Wed, 17 May 2006 14:53:50 GMT
James? Anybody? Help? :)

Adrian Tarau wrote:
> James? Any suggestions how to clear a queue with activemq API without 
> JMX? Thanks.
>
> Adrian Tarau wrote:
>> I know the utility of JMX, I use it :) But right now I don't want to 
>> activate JMX. I saw that ActiveMQ use MX4J 2.1.1(why don't use 
>> 3.0.1?) and I have already in my application MX4J 3.0.1 libraries and 
>> I remember I used 3.0.1 with a project that need 2.1.x and was not 
>> working.
>>
>> And of course I cannot have two version of MX4J in my application.
>>
>> James Strachan wrote:
>>> On 5/15/06, Adrian Tarau <ady@daxtechnologies.com> wrote:
>>>> Since I use embedded JMS is not necessary to activate also JMX,
>>>
>>> JMX is extremely useful. e.g. in JConsole you can watch all of the
>>> mbeans in an application (the garbage collector, number of threads,
>>> amount of memory free together wtih the ActiveMQ mbeans such as all
>>> the destinations & consumers and queue depths etc
>>>
>>>
>>>>  and JMX
>>>> MBeans already use those parts to interrogate for values outside 
>>>> the JMS
>>>> standard. Why not to be accessible with Java code and only JMX?
>>>
>>> Everything is accessible via Java code and JMX; the reason I suggest 
>>> JMX is that
>>>
>>> (i) it can work with remote brokers too
>>> (ii) it works great in JConsole - so its really easy to look at the
>>> mbeans whenever you like (rather than having to write Java code)
>>>
>>
>


Mime
View raw message