[jboss-cvs] JBossAS SVN: r111454 - branches/JBPAPP_4_3_0_GA_CP09_JBPAPP-6575/system/src/main/org/jboss/system/server/jmx.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 25 17:04:18 EDT 2011
Author: bmaxwell
Date: 2011-05-25 17:04:17 -0400 (Wed, 25 May 2011)
New Revision: 111454
Modified:
branches/JBPAPP_4_3_0_GA_CP09_JBPAPP-6575/system/src/main/org/jboss/system/server/jmx/LazyMBeanServer.java
Log:
[JBPAPP-6575] LazyMBeanServer was not properly initializing during startup to delegate to the platform server for platform mbeans.
Modified: branches/JBPAPP_4_3_0_GA_CP09_JBPAPP-6575/system/src/main/org/jboss/system/server/jmx/LazyMBeanServer.java
===================================================================
--- branches/JBPAPP_4_3_0_GA_CP09_JBPAPP-6575/system/src/main/org/jboss/system/server/jmx/LazyMBeanServer.java 2011-05-25 20:31:35 UTC (rev 111453)
+++ branches/JBPAPP_4_3_0_GA_CP09_JBPAPP-6575/system/src/main/org/jboss/system/server/jmx/LazyMBeanServer.java 2011-05-25 21:04:17 UTC (rev 111454)
@@ -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