[jboss-jira] [JBoss JIRA] Created: (JBAS-7757) MBeanServerFactory should create an MBeanServer with a defaultDomain

Alexandre Russel (JIRA) jira-events at lists.jboss.org
Sat Feb 20 09:21:10 EST 2010


MBeanServerFactory should create an MBeanServer with a defaultDomain
--------------------------------------------------------------------

                 Key: JBAS-7757
                 URL: https://jira.jboss.org/jira/browse/JBAS-7757
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: JBossAS-4.2.3.GA
            Reporter: Alexandre Russel
            Priority: Minor


When starting JBoss with those option (coming from the FAQ: http://community.jboss.org/wiki/JBossMBeansInJConsole)
# Enable the jconsole agent locally
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
# Tell JBossAS to use the platform MBean server
JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"
# 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list