The correct MBean name is:
  org.apache.activemq:BrokerName=<name>,Type=Broker
The jconsole (at least with Java 6) displays the object name of any MBean.

Also it might be worth to look at the activemq_web project which
provides a layer to access the broker over jmx (query queues etc).
This is then used for the activemq webconsole.

Mario

On Wed, Jun 25, 2008 at 2:16 PM, Michal Singer <[EMAIL PROTECTED]> 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?
>
>
> Thanks, Michal
> --
> View this message in context: 
> http://www.nabble.com/How-can-i-connect-to-JMX-beans-of-activemq-from-the-code-tp18111006p18111006.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Reply via email to