Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7757

MBeanServerFactory should create an MBeanServer with a defaultDomain

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • No Release
    • JBossAS-4.2.3.GA
    • None
    • None
    • Documentation (Ref Guide, User Guide, etc.)
    • Low

      When starting JBoss with those option (coming from the FAQ: http://community.jboss.org/wiki/JBossMBeansInJConsole)

      1. Enable the jconsole agent locally
        JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
      2. Tell JBossAS to use the platform MBean server
        JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"
      3. Make the platform MBean server able to work with JBossAS MBeans
        JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"

      This is called in MBeanServerFactory
      public static MBeanServer createMBeanServer()

      { return createMBeanServer(null); }

      It should be "DefaultDomain" instead of null. The Javadoc states (wrongly)

      • <p>The standard default domain name is
      • <code>DefaultDomain</code>.</p>

      The result is a MBeanServer having a null default domain.

              Unassigned Unassigned
              arussel_jira alexandre russel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: