[jboss-cvs] JBossAS SVN: r84277 - branches/Branch_5_x/tomcat/src/main/org/jboss/web/tomcat/service/session.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Feb 16 15:04:26 EST 2009
Author: bstansberry at jboss.com
Date: 2009-02-16 15:04:26 -0500 (Mon, 16 Feb 2009)
New Revision: 84277
Modified:
branches/Branch_5_x/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossCacheManager.java
Log:
[JBAS-6281] Use IgnoreUndeployLegacyClusteredSessionNotificationPolicy as the default ClusteredSessionNotificationPolicy
Modified: branches/Branch_5_x/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossCacheManager.java
===================================================================
--- branches/Branch_5_x/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossCacheManager.java 2009-02-16 19:57:52 UTC (rev 84276)
+++ branches/Branch_5_x/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossCacheManager.java 2009-02-16 20:04:26 UTC (rev 84277)
@@ -22,6 +22,7 @@
package org.jboss.web.tomcat.service.session;
import java.security.AccessController;
+import java.security.PrivilegedAction;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
@@ -58,7 +59,7 @@
import org.jboss.web.tomcat.service.session.notification.ClusteredSessionNotificationCapability;
import org.jboss.web.tomcat.service.session.notification.ClusteredSessionNotificationCause;
import org.jboss.web.tomcat.service.session.notification.ClusteredSessionNotificationPolicy;
-import org.jboss.web.tomcat.service.session.notification.LegacyClusteredSessionNotificationPolicy;
+import org.jboss.web.tomcat.service.session.notification.IgnoreUndeployLegacyClusteredSessionNotificationPolicy;
/**
* Implementation of a clustered session manager for
@@ -1885,8 +1886,14 @@
{
if (this.notificationPolicyClass_ == null || this.notificationPolicyClass_.length() == 0)
{
- this.notificationPolicyClass_ = System.getProperty("jboss.web.clustered.session.notification.policy",
- LegacyClusteredSessionNotificationPolicy.class.getName());
+ this.notificationPolicyClass_ = AccessController.doPrivileged(new PrivilegedAction<String>()
+ {
+ public String run()
+ {
+ return System.getProperty("jboss.web.clustered.session.notification.policy",
+ IgnoreUndeployLegacyClusteredSessionNotificationPolicy.class.getName());
+ }
+ });
}
try
More information about the jboss-cvs-commits
mailing list