Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 24651 invoked from network); 31 Mar 2010 13:46:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Mar 2010 13:46:38 -0000 Received: (qmail 19532 invoked by uid 500); 31 Mar 2010 13:46:38 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 19477 invoked by uid 500); 31 Mar 2010 13:46:38 -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 19469 invoked by uid 99); 31 Mar 2010 13:46:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 13:46:38 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 13:46:31 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NwyFG-0005hD-TQ for users@activemq.apache.org; Wed, 31 Mar 2010 06:46:10 -0700 Message-ID: <28096104.post@talk.nabble.com> Date: Wed, 31 Mar 2010 06:46:10 -0700 (PDT) From: uberpuppy To: users@activemq.apache.org Subject: JMX remoting issue MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: uberpuppy@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hey folks, I'm trying to expose an activemq broker via jmx across a network. i.e. activemq broker on box1, jconsole on box2. Here's the config I've been playing with: In the bin/activemq shell script: SUNJMX="-Dcom.sun.management.jmxremote #-Djava.rmi.server.hostname=?.?.?.?" #-Dcom.sun.management.jmxremote.port=60606 #-Dcom.sun.management.jmxremote.authenticate=false #-Dcom.sun.management.jmxremote.ssl=false where I've tried both with and without the currently commented entries. The hostname I've tried variously as 0.0.0.0, 127.0.0.1, localhost, the network Ip and the network name of the server. For the broker config: Where I've tried all combinations of the true/false variables (e.g. createMBeanServer and createConnector) and the same or different combinations of connectorHost as I mentioned for the shell script vmargs config. So, I can get the jmx to expose locally with the following setup: SUNJMX="-Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=127.0.0.1" #-Dcom.sun.management.jmxremote.port=60606 #-Dcom.sun.management.jmxremote.authenticate=false #-Dcom.sun.management.jmxremote.ssl=false Any other configuration either gives me a NullPointer for a non-existent MBeanServer (e.g. with too many false values) or this: WARN | Failed to start jmx connector: Cannot bind to URL [rmi://127.0.0.1:60606/activemq]: javax.naming.NoPermissionException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.AccessException: Cannot modify this registry] The only semi-relevant reference I found on this is 4 years old and didn't get me anywhere either: http://forum.springsource.org/archive/index.php/t-26140.html. All told, this is beginning to really pee me off quite a bit. I've been at this for 2 days patiently going through the config combinations and online doco. So... any thoughts, suggestions, fixes or workarounds very much appreciated Cheers Alastair -- View this message in context: http://old.nabble.com/JMX-remoting-issue-tp28096104p28096104.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.