activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Snyder" <bruce.sny...@gmail.com>
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 <Michal.Singer@expand.com> 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:
> javax.management.InstanceNotFoundException:
> 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.

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

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/

Blog: http://bruceblog.org/

Mime
View raw message