Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 52392 invoked from network); 9 Jan 2004 00:10:57 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Jan 2004 00:10:57 -0000 Received: (qmail 14139 invoked by uid 500); 9 Jan 2004 00:10:35 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 14089 invoked by uid 500); 9 Jan 2004 00:10:35 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 14076 invoked from network); 9 Jan 2004 00:10:35 -0000 Received: from unknown (HELO mail.asynchrony.com) (12.25.233.219) by daedalus.apache.org with SMTP; 9 Jan 2004 00:10:35 -0000 Received: from asolutions.com (yarael.asynchrony.com [192.168.2.134]) by mail.asynchrony.com (8.12.8/8.12.5) with ESMTP id i090Atak027027 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Thu, 8 Jan 2004 18:10:55 -0600 Message-ID: <3FFDF180.1080500@asolutions.com> Date: Thu, 08 Jan 2004 18:10:40 -0600 From: Kevin Pfarr User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: JMX JRMP rmi registry port configuration References: <3FFDDFEF.1020001@asolutions.com> <01cf01c3d640$ca6a7010$ec66a8c0@bbarkerxp> In-Reply-To: <01cf01c3d640$ca6a7010$ec66a8c0@bbarkerxp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The option mx.jrmpPort is used for registering the JRMPAdaptor to the NamingService, by setting the PROVIDER_URL. When the NamingService is regeristered it creates the rmi registry whiCh defaults to 1099. The code below will show what I mean about setting the port on the rmi registry. The code below is from the class org.apache.jk.common.JkMX. jrmpServerName = new ObjectName("Naming:name=rmiregistry"); mserver.createMBean("mx4j.tools.naming.NamingService", jrmpServerName, null); // new line to set the rmi registry port to 1199 server.setAttribute(naming, new Attribute("Port", new Integer("1199"))); mserver.invoke(jrmpServerName, "start", null, null); log.info( "Creating " + jrmpServerName ); -Kevin Bill Barker wrote: > ----- Original Message ----- > From: "Kevin Pfarr" > To: > Sent: Thursday, January 08, 2004 2:55 PM > Subject: JMX JRMP rmi registry port configuration > > > >>When JMX is enabled, in the jk2.properties file, and configured to use >>the MX4J JRMP interal adapter, a rmi registry is created and bound to >>the default port of 1099. If there is another application using that >>port and bind expection is thrown and the adaptor is never enabled. >> >>A configuration option for the rmi registry port would sovle this >>problem. A setter for port does exist on the >>mx4j.tools.naming.NamingService object. >> >>The lastest source for org.apache.jk.common.JkMX does not have this >>feature, and would be the place to incorporate it. > > > > Actually, it does have this feature already. The option you want is: > mx.jrmpPort= > >>This is my first post to the mailing list and have been a long time user >>of Tomcat. >> >>-Kevin >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org >> > > > > ------------------------------------------------------------------------ > > > This message is intended only for the use of the person(s) listed above as the intended recipient(s), and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, you may not read, copy, or distribute this message or any attachment. If you received this communication in error, please notify us immediately by e-mail and then delete all copies of this message and any attachments. > > In addition you should be aware that ordinary (unencrypted) e-mail sent through the Internet is not secure. Do not send confidential or sensitive information, such as social security numbers, account numbers, personal identification numbers and passwords, to us via ordinary (unencrypted) e-mail. > > > > ------------------------------------------------------------------------ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org -- Kevin Pfarr Software Engineer PN: 314.678.2231 FX: 314.436.2559 CELL: 314.629.6255 kevin.pfarr@asolutions.com Asynchrony Solutions, Inc. 1709 Washington Avenue // Suite 200 Saint Louis, Missouri 63103 www.asolutions.com --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org