Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 98997 invoked from network); 7 Dec 2006 19:22:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 19:22:39 -0000 Received: (qmail 22585 invoked by uid 500); 7 Dec 2006 19:22:46 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 22571 invoked by uid 500); 7 Dec 2006 19:22:46 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 22562 invoked by uid 99); 7 Dec 2006 19:22:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 11:22:46 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.235.254.11] (HELO exodus.exist.com) (209.235.254.11) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 11:22:34 -0800 Received: from [192.168.200.164] ([205.147.11.148]) (authenticated bits=0) by exodus.exist.com (8.13.1/8.13.1) with ESMTP id kB7JM8hP012638 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 7 Dec 2006 14:22:09 -0500 Message-ID: <457869E2.1080608@exist.com> Date: Fri, 08 Dec 2006 03:22:10 +0800 From: Adrian Co User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: activemq-users@geronimo.apache.org Subject: Re: Newbie Question: how to connect to MBeanServer with my ActiveMQ broker running stand-alone. References: <7725455.post@talk.nabble.com> <7734130.post@talk.nabble.com> <7734849.post@talk.nabble.com> In-Reply-To: <7734849.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org You start here: http://java.sun.com/j2se/1.5.0/docs/guide/jmx/tutorial/tutorialTOC.html samahome wrote: > Sure. I am able to connect using jconsole. > > But What i need is to programatically connect to MBeanServer and to obtain > the broker statistics and to find the amount of messages per priority > waiting to be sent to the consumer by broker. > > Any other approaches i should be looked at ? > > Any help on this would greatly appreciated. > > - Sreenivas > > > > > pradeep wrote: > >> Use jconsole to connect from commane line. Check the ActivceMQ docs for >> more info. >> >> pradeep >> >> >> >> samahome wrote: >> >>> Could you give some example on how to connect to the MBean Server and >>> get the broker MBean instance ? >>> >>> My activeMQ broker is running in stand-alone mode (not embedded broker). >>> >>> The URI for my broker is tcp://localhost:61616 >>> >>> >>> - Sreenivas >>> >>> >> > >