[jboss-cvs] JBossAS SVN: r85048 - 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 2 07:35:28 EST 2009
Author: emuckenhuber
Date: 2009-03-02 07:35:28 -0500 (Mon, 02 Mar 2009)
New Revision: 85048
Modified:
trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java
Log:
[JBAS-6472] enable HD scanning on all mutable profiles.
Modified: trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java 2009-03-02 12:34:29 UTC (rev 85047)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java 2009-03-02 12:35:28 UTC (rev 85048)
@@ -252,10 +252,18 @@
{
log.error("Failed to load profile: ", e);
}
+
// Mark the profile as ready for hotdeployment if supported
- Profile activeProfile = profileService.getActiveProfile(profileKey);
- if( activeProfile != null && activeProfile.isMutable())
- ((MutableProfile)activeProfile).enableModifiedDeploymentChecks(true);
+ for(ProfileKey key : profileService.getActiveProfileKeys())
+ {
+ try
+ {
+ Profile profile = profileService.getActiveProfile(key);
+ if(profile.isMutable() && profile instanceof MutableProfile)
+ ((MutableProfile) profile).enableModifiedDeploymentChecks(true);
+ }
+ catch(NoSuchProfileException ignore) { }
+ }
}
public void prepareShutdown(Server server)
@@ -267,6 +275,19 @@
public void shutdown(Server server)
{
+ // Disable hotdeployment scanning
+ for(ProfileKey key : profileService.getActiveProfileKeys())
+ {
+ try
+ {
+ Profile profile = profileService.getActiveProfile(key);
+ if(profile.isMutable() && profile instanceof MutableProfile)
+ ((MutableProfile) profile).enableModifiedDeploymentChecks(false);
+ }
+ catch(NoSuchProfileException ignore) { }
+ }
+
+
// Deactivate the root profile
try
{
More information about the jboss-cvs-commits
mailing list