You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by sparky2708 <da...@columbia.edu> on 2007/04/02 19:14:24 UTC

How do I delete a queue or topic that I no longer need?

How do I delete a queue or topic that I no longer need? Can I do this through
JConsole? If not, how?
-- 
View this message in context: http://www.nabble.com/How-do-I-delete-a-queue-or-topic-that-I-no-longer-need--tf3507018s2354.html#a9794952
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: How do I delete a queue or topic that I no longer need?

Posted by James Strachan <ja...@gmail.com>.
On 4/2/07, sparky2708 <da...@columbia.edu> wrote:
>
> How do I delete a queue or topic that I no longer need? Can I do this through
> JConsole? If not, how?

BTW the MBean interfaces are your friend...
http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/jmx/package-summary.html

e g
http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/jmx/BrokerViewMBean.html#removeQueue(java.lang.String)

-- 

James
-------
http://radio.weblogs.com/0112098/

Re: How do I delete a queue or topic that I no longer need?

Posted by sparky2708 <da...@columbia.edu>.
Found the easy answer to this question:

In your activemq.xml file put:
    <!-- Use the following to configure how ActiveMQ is exposed in JMX
    <managementContext>
       <managementContext connectorPort="1099"
jmxDomainName="org.apache.activemq"/>
    </managementContext>
    -->

Run JCONSOLE from your java directory.

TO REMOVE A TOPIC/QUEUE:
(1) In the MBEANS tab under org.apache.activemq there will be something
called "BROKER" (sometimes under master if you have master/slave setup)
(2) Click on the tab "Operations"
(3) Invoke the method "Remove Topic" with the topic name as the argument

Thanks for everyone's help!


bsnyder wrote:
> 
> On 4/2/07, sparky2708 <da...@columbia.edu> wrote:
>>
>> How do I delete a queue or topic that I no longer need? Can I do this
>> through
>> JConsole? If not, how?
> 
> This functionality is available via the JMX APIs in ActiveMQ. Attached
> is a very small project that includes functionality to query for a
> topic and then remove it. I think the list disallows attachments, so
> I'll also CC you directly so you receive the attachment.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
> 
>  
> 

-- 
View this message in context: http://www.nabble.com/How-do-I-delete-a-queue-or-topic-that-I-no-longer-need--tf3507018s2354.html#a9820364
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: How do I delete a queue or topic that I no longer need?

Posted by Bruce Snyder <br...@gmail.com>.
On 4/2/07, sparky2708 <da...@columbia.edu> wrote:
>
> How do I delete a queue or topic that I no longer need? Can I do this through
> JConsole? If not, how?

This functionality is available via the JMX APIs in ActiveMQ. Attached
is a very small project that includes functionality to query for a
topic and then remove it. I think the list disallows attachments, so
I'll also CC you directly so you receive the attachment.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/