Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 8247 invoked from network); 25 Jun 2008 13:41:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2008 13:41:31 -0000 Received: (qmail 26975 invoked by uid 500); 25 Jun 2008 13:41:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 26892 invoked by uid 500); 25 Jun 2008 13:41:31 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 26881 invoked by uid 99); 25 Jun 2008 13:41:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 06:41:31 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.200.169] (HELO wf-out-1314.google.com) (209.85.200.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 13:40:39 +0000 Received: by wf-out-1314.google.com with SMTP id 26so2829538wfd.26 for ; Wed, 25 Jun 2008 06:40:58 -0700 (PDT) Received: by 10.142.245.6 with SMTP id s6mr6789963wfh.187.1214401258652; Wed, 25 Jun 2008 06:40:58 -0700 (PDT) Received: by 10.150.196.15 with HTTP; Wed, 25 Jun 2008 06:40:58 -0700 (PDT) Message-ID: <28c3c9290806250640w68e7376fn17d1eff00baad172@mail.gmail.com> Date: Wed, 25 Jun 2008 15:40:58 +0200 From: "Mario Siegenthaler" To: users@activemq.apache.org Subject: Re: How can i connect to JMX beans of activemq from the code In-Reply-To: <18111006.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <18111006.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org The correct MBean name is: org.apache.activemq:BrokerName=,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 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.: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. > >