Announcement Announcement Module
Collapse
No announcement yet.
Remote JMX RMI Ports Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remote JMX RMI Ports

    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

  • #2
    Thought I'd chime in. I too need this functionality...

    Comment


    • #3
      Raise an issue on jira.

      Comment


      • #4
        I use this, and it seems to work...

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

        <bean id="serverConnector"
        class="org.springframework.jmx.support.ConnectorSe rverFactoryBean">
        <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

        Comment

        Working...
        X