[jboss-cvs] JBossAS SVN: r111417 - branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/system/server/jmx.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon May 23 13:58:31 EDT 2011


Author: csams
Date: 2011-05-23 13:58:31 -0400 (Mon, 23 May 2011)
New Revision: 111417

Modified:
   branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/system/server/jmx/LazyMBeanServer.java
Log:
[JBPAPP-6296] LazyMBeanServer was not properly initializing during startup to delegate to the platform server for platform mbeans.

Modified: branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/system/server/jmx/LazyMBeanServer.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/system/server/jmx/LazyMBeanServer.java	2011-05-20 21:07:44 UTC (rev 111416)
+++ branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/system/server/jmx/LazyMBeanServer.java	2011-05-23 17:58:31 UTC (rev 111417)
@@ -74,6 +74,9 @@
     * handled by the platform server
     */
    private static Set platformServerDomains = Collections.synchronizedSet(new HashSet());
+
+   private static transient boolean loadedServiceDomains = false;
+
    /** A HashSet<String> of the jmx domain prefixes that need to be
     * handled by the jboss server
     */
@@ -366,6 +369,11 @@
       throws InstanceNotFoundException, IntrospectionException,
       ReflectionException
    {
+      if (! loadedServiceDomains ) {    // force service domains to be loaded at least once
+         loadedServiceDomains = true;
+         reloadDomains();
+      }
+
       MBeanInfo info = null;
       try
       {
@@ -382,6 +390,11 @@
    public boolean isInstanceOf(ObjectName name, String className)
       throws InstanceNotFoundException
    {
+      if (! loadedServiceDomains ) {    // force service domains to be loaded at least once
+         loadedServiceDomains = true;
+         reloadDomains();
+      }
+
       boolean isInstanceOf = false;
       try
       {



More information about the jboss-cvs-commits mailing list