Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 6692 invoked from network); 23 Aug 2006 18:47:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Aug 2006 18:47:31 -0000 Received: (qmail 1953 invoked by uid 500); 23 Aug 2006 18:47:31 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 1934 invoked by uid 500); 23 Aug 2006 18:47:31 -0000 Mailing-List: contact activemq-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-dev@geronimo.apache.org Received: (qmail 1925 invoked by uid 99); 23 Aug 2006 18:47:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 11:47:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 11:47:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 730887142E4 for ; Wed, 23 Aug 2006 18:44:23 +0000 (GMT) Message-ID: <20569098.1156358663468.JavaMail.jira@brutus> Date: Wed, 23 Aug 2006 11:44:23 -0700 (PDT) From: "John Heitmann (JIRA)" To: activemq-dev@geronimo.apache.org Subject: [jira] Commented: (AMQ-892) Allow the JMX RMI server port to be hard set In-Reply-To: <3193617.1156234103103.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ https://issues.apache.org/activemq/browse/AMQ-892?page=comments#action_36832 ] John Heitmann commented on AMQ-892: ----------------------------------- There are at least 2 unfortunate issues with the out-of-the-box 1.5 JMX config: the rmi registry isn't able to use a secure transport, and the rmi server port is not able to be fixed. My patch addresses the second, and I think you're right in that it's better to use the normal jmx properties config rather than the xbean xml. I'll redo this patch and mimic an out-of-the-box agent as described by one of the JMX developers here: http://blogs.sun.com/roller/page/lmalventosa/20060602 That will have the nice benefit of also allowing a secure registry, which is something my group will need shortly anyway. > Allow the JMX RMI server port to be hard set > -------------------------------------------- > > Key: AMQ-892 > URL: https://issues.apache.org/activemq/browse/AMQ-892 > Project: ActiveMQ > Issue Type: Improvement > Components: Broker > Affects Versions: 4.0.2 > Reporter: John Heitmann > Priority: Minor > Attachments: jmxPort.patch > > > When debugging a broker over the firewall with JMX it's often necessary to use ssh tunneling. JMX uses 2 ports. The RMI registry port is what is typically configured, but JMX also runs an RMI server on a different port-- one that's typically chosen randomly. When you're ssh tunneling you need to know what ports to tunnel to a priori so this is no good. > This patch adds a setting to allow the RMI server port to be set in addition to the registry port. This is what it looks like in xml: > > Also I snuck in a one-liner change that will create the connector if the user configured jmx. This seems like the right thing to do, but my JMX experience is pretty limited so it could break in something like Tomcat. Please take a close look at that line before applying. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira