activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonas Lim <j...@exist.com>
Subject Re: Removing a queue
Date Wed, 05 Dec 2007 03:26:05 GMT
Hi,

You may want to check out some of the unit tests for jmx for examples on 
obtaining references to activemq mbeans

http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/

Regards,
Jonas

taubler wrote:
> Hi,
>
> I'm looking for a way to programmatically remove a queue from a broker once
> I'm done using it (e.g. during tearDown() in a JUnit test; I can't manually
> go into the JMX console to delete the queue by hand). I've seen a lot of
> tips to this effect:
>
> via Java code or JMX you can grab the BrokerViewMBean and call one of the
> following methods
>
>     * removeQueue(String)
>     * removeTopic(String)
>
> But the problem is, I have no reference to the BrokerViewMBean, and I
> haven't a clue as to how to obtian one. Can anyone advise me as to how?
>
> Thanks in advance.
>   

Mime
View raw message