3 Replies Latest reply on Jul 29, 2010 4:51 AM by luke_m

    Jboss connector port

    luke_m

      Hi,

      I've an application running on jboss 5.x, and I've to know inside my appl Jboss connector port and address.

       

      I can know Jboss address reading system property "jboss.bind.address", but

      I don't know how to read connector port

       

      thanks in advance

      luke

        • 1. Re: Jboss connector port
          peterj

          Since you posted this in the JMX fofumr I assume that you are wanting to know how to connect to the JMX server. This should help:

          http://community.jboss.org/wiki/HowDoIGetRemoteAccessToMyMBean

          • 2. Re: Jboss connector port
            luke_m

            I know how to connect to Jmx server, and I also found a Jboss Mbean

             

                 jboss.web:type=ThreadPool,name=http-<listenAdd>:<port>

             

            which  attribute "port" contains connector port I'm looking for ("port" il also contained in Mbean name).

             

            Anyway I must know connector port  when my application start up, and at this time this specific mbean is not yet registered on

            Jboss Mbean Server.

             

            I've posted this issue in jmxForum, but maybe there are other ways to retry this info.

             

             

            thanks in advance

            • 3. Re: Jboss connector port
              luke_m

              Hi,

              I've found this MBean

               

                   jboss.web:type=Connector,address=/<JbossConnectorAddress>,port=<JbossConnectorPort>

               

              that contains http connector port I'm looking for.

               

              I've verified that this Mbean is registered when my jboss application is startingUp. So this can solve my issue

               

              thanks

              luke