PDA

View Full Version : Remote JMX RMI Ports



ctaggart
Jan 30th, 2006, 03:46 PM
I would like to use either JConsole or MC4J or a custom client to connect remotely to a JMX MBeanServer. I'm using Java SE 5, latest Spring 1.2.x, and latest Tomcat 5.5.x. I can control the JMX Remote port, but is it possible to control the port where the RMI communication is?

Does Spring have or can Spring add a custom RMISocketFactory to control the RMI port for JMX communcation? I have to deal with firewalls in our internal network, so a random port will not work for me.

cheers,
Cameron

chappy
Feb 21st, 2006, 03:10 PM
Thought I'd chime in. I too need this functionality...

Costin Leau
Feb 27th, 2006, 08:14 AM
Raise an issue on jira.

craig
Aug 10th, 2006, 06:18 PM
I use this, and it seems to work...

<bean id="registry" class="org.springframework.remoting.rmi.RmiRegistryFactor yBean">
<property name="port" value="8335"/>
</bean>

<bean id="serverConnector"
class="org.springframework.jmx.support.ConnectorServerFac toryBean">
<property name="objectName" value="connector:name=rmi"/>
<property name="serviceUrl"
value="service:jmx:rmi://localhost:8100/jndi/rmi://localhost:8335/server"/>
</bean>

8335 is the registry, and 8100 is access to the stubs. just need holes in firewall for those two ports