[jboss-cvs] JBossAS SVN: r81162 - trunk/system/src/main/org/jboss/system/server/profileservice.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 17 04:10:51 EST 2008


Author: scott.stark at jboss.org
Date: 2008-11-17 04:10:51 -0500 (Mon, 17 Nov 2008)
New Revision: 81162

Modified:
   trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java
Log:
Don't build the bootstrap ManagedDeployments if no mof, mgtDeploymentCreator injected

Modified: trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java	2008-11-17 09:06:26 UTC (rev 81161)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java	2008-11-17 09:10:51 UTC (rev 81162)
@@ -457,6 +457,12 @@
 
    protected void initBootstrapMDs(Server server)
    {
+      if(mof == null || mgtDeploymentCreator == null)
+      {
+         log.warn("Skipping ManagedDeployment creation due to missing mof, mgtDeploymentCreator");
+         return;
+      }
+
       Map<String, KernelDeployment> serverDeployments = null;
       if(server instanceof MCServer)
       {




More information about the jboss-cvs-commits mailing list