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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Mar 19 02:55:04 EDT 2007


Author: scott.stark at jboss.org
Date: 2007-03-19 02:55:03 -0400 (Mon, 19 Mar 2007)
New Revision: 61420

Modified:
   trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java
Log:
Enable hot deployment even if there is an exception during startup

Modified: trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java	2007-03-19 04:32:20 UTC (rev 61419)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java	2007-03-19 06:55:03 UTC (rev 61420)
@@ -245,10 +245,6 @@
       try
       {
          loadProfile(profileName);
-         // Mark the profile as ready for hotdeployment if supported
-         Profile profile = profileService.getActiveProfile();
-         if( profile != null )
-            profile.enableModifiedDeploymentChecks(true);
       }
       catch (IncompleteDeploymentException e)
       {
@@ -258,6 +254,10 @@
       {
          log.error("Failed to load profile: ", e);
       }
+      // Mark the profile as ready for hotdeployment if supported
+      Profile profile = profileService.getActiveProfile();
+      if( profile != null )
+         profile.enableModifiedDeploymentChecks(true);
    }
 
    /**




More information about the jboss-cvs-commits mailing list