5 Replies Latest reply on Jul 31, 2013 6:47 AM by bvnghiem1012

    Determine RMI remote port

    msmi

      Hi everyone!

      i try to determine the RMI remote port, which the jboss 7 server is listening to. It's configuration within the standalone.xml is clear: <socket-binding name="remoting" port="4447"/>

      In JBoss 4.2.3 it can be determined by the JNDI lookup of jmx/invoker/RMIAdaptor and its Port attribute.

      Thanks for any hint,

      Mike

        • 1. Re: Determine RMI remote port
          dlofthouse

          The reason you are having trouble finding it is because it does not exist   Remote invocations are now over Remoting so port 4447 by default.

          • 2. Re: Determine RMI remote port
            msmi

            Hi Darran,

             

            that is exactly the point: it doesn't exist. Also the configuration of the remote port (default: 4447) is clear, but:

             

            Is there a possibility to determine the RMI remote port the currently running server configuration is listening to? Any Resource/Service/Bean etc.?

             

            Greets,

            Mike

            • 3. Re: Determine RMI remote port
              dlofthouse

              There is no RMI port - by does not exist I mean the port itself does not exist not configuration for a non existant port.  Invocations are not send using RMI so there is no RMI port.  JBoss AS does not open a listening RMI port as the invocation is sent over Remoting and port 4447 by default.

              • 4. Re: Determine RMI remote port
                msmi

                OK, i think something has been misleading in my question:

                with: "i doesn't exist" i meant the jmx/invoker/RMIAdaptor

                and: i am not searching for any rmi port object instance.

                i just want to get the value of the RMI remote port of the configuration. if there is no Resource/bean/service etc. to get it from (as in JBoss 4.2.3 via the RMIAdaptor), maybe there is a possibilty (which would never be my first choice) to read the value of the standalone.xml configuration?! If this is the only possibility: how get i get this value?

                • 5. Re: Determine RMI remote port
                  bvnghiem1012

                  Hi Darran,

                  I'm trying to develop an application that will run on JBoss 7.1.1Final and know that this version of JBoss AS does not support RMI over RMI port as previous version. But I see in this document https://docs.jboss.org/author/display/AS7/JMX+subsystem+configuration it show that they are using RMI to connect in JBoss AS7. Can you clearify what version of JBoss 7 support this approach (such as AS7.0 or AS7.2). Thanks