Version 7

    JMXConnectorServerService

     

    Configuration properties:

     

    RegistryPort - default is Registry.REGISTRY_PORT (1099)

     

    BindAddress - default is InetAddress.getLocalHost().getHostName() (will also use this if BindAddress set to 0.0.0.0)

     

    JndiPath - default is JNDI_PATH_DEFAULT (value of /jmxconnector)

     

     

    These can be set within the jboss-service.xml found under server/default/jmx-remoting.sar/META-INF.  By default, the contents of this file is as follows:

     

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE server>
    
    <!-- ======================================================== -->
    <!-- Example JBoss JMX Remoting Service Configuration file        -->
    <!-- ======================================================== -->
    <server>
    
       <!-- NOTE: set this up to the path where your libraries are -->
       <classpath codebase="lib"
          archives="*"></classpath>
    
       <mbean code="org.jboss.mx.remoting.service.JMXConnectorServerService"
          name="jboss.remoting:service=JMXConnectorServer,protocol=rmi"
          display-name="JMX Connector Server (RMI)">
                   <attribute name="BindAddress">${jboss.bind.address}</attribute>
                <!-- if comment this out, will use 1099 as default and will conflict -->
                <!-- with default JNP (JNDI) port. -->
                <attribute name="RegistryPort">1090</attribute>
                <!-- the path to which will be bound in rmi registry -->
                <!-- the commented value below is the default. -->
                <!-- <attribute name="JndiPath ">/jmxconnector</attribute> -->
       </mbean>
    
    </server>
    

     

    With the default configuration, the JMX Service URL to connecto to the server is

    service:jmx:rmi://[host]/jndi/rmi://[host]:1090/jmxconnector

    .

     

    Note:  This is currently only available in CVS HEAD (JBossAS 5).  Will be backported to 4.x release once security support is added.