activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Snyder" <>
Subject Re: How can i connect to JMX beans of activemq from the code
Date Wed, 25 Jun 2008 14:39:18 GMT
On Wed, Jun 25, 2008 at 6:16 AM, Michal Singer <> wrote:
> hi. i am trying to monitor actimve jmx beans from inside the code.
> I am trying something like connecting to the JMX server the process uses
> with accessing
> a bean with name:
> org.apache.activemq.<broker name>:type=Broker
>  but i get exception:
> com.expand.expandview.common.exceptions.EVJMXException:
> org.apache.activemq.embeddedbroker:type=Broker
> Any ideas how to connect? which object name to use?

Attached is a code example of using JMX to query for the ActiveMQ
MBeans and then create a topic and remove that topic. This code can be
easily adapted to use queues instead of just topics.

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

Apache ActiveMQ -
Apache Camel -
Apache ServiceMix -


View raw message