3 Replies Latest reply on May 4, 2007 12:42 PM by Ryan Luu

    JMX URLs

    Ryan Luu Newbie

      I've created an MBean on a JBoss server with all default settings and it is running fine. I can see it on the jmx-console and as well as view it in the JConsole application under 'local'. How do I determine the JMX URL to use to remotely invoke the MBean?

      I am trying to get it to work with Hyperic eventually, which uses RMI to invoke remote MBeans.

      My MBean is called:

      I've tried the both of the following in JConsole (under remote), and it failed to work:

      Is my URL malformed? Defaults of my current configuration is: 1099 for the NamingService port and 1098 is the RMI port. Which should I be using?

      Below lists some of the JAVA_OPTS I added to the JBoss run.conf file.

      # Enable the jconsole agent locally
      JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"

      # Enable the jconsole agent locally with integration of the jboss MBeans
      JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"
      JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"
      JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"

      JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
      JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"

      Any help would be greatly appreciated.