activemq-users mailing list archives

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

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


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.

View raw message