1 Reply Latest reply on Sep 17, 2013 6:20 AM by Naziya Syed

    jmx rmi connection refused

    keiji13 Newbie

      Hi,

       

      I have a question.

      I'm migrating older applications to JBoss AS 7, and all of them are using jmx rmi.

      I read that in JBoss AS 7, jmx rmi is not used anymore, but instead makes use of remoting-jmx.

      Is there any way to make jmx rmi work for JBoss AS 7?

       

      Whenever I run the application that uses jmx rmi, I always get this error:

       

      ERROR [JMXUtil] - <Exception encountered in connect()!>

      java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:

              java.net.ConnectException: Connection refused]

       

       

      Thanks.

        • 1. Re: jmx rmi connection refused
          Naziya Syed Newbie

          Hi,

           

            To connect to JBoss using JConsole(instead of jmx-console), use the script provided in $JBOSS_HOME/bin/jconsole.sh

           

             Do the following:

           

                1.Start the JBoss server with the bindaddress e.g ./standalone.sh -c standalone-full.xml -bmanagement x.x.x.x

           

                2. Run script $JBOSS_HOME/bin/jconsole.sh

           

                3. Set the remote connection URL as

           

                            service:jmx:remoting-jmx://jbossHost:9999

           

                    with the username and password added for managment user