[jboss-cvs] JBossAS SVN: r84335 - trunk/tomcat/src/main/org/jboss/web/tomcat/service/session.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Feb 17 17:49:38 EST 2009


Author: bstansberry at jboss.com
Date: 2009-02-17 17:49:38 -0500 (Tue, 17 Feb 2009)
New Revision: 84335

Modified:
   trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossCacheManager.java
Log:
[JBAS-6281] Use IgnoreUndeployLegacyClusteredSessionNotificationPolicy as the default ClusteredSessionNotificationPolicy 

Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossCacheManager.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossCacheManager.java	2009-02-17 22:41:47 UTC (rev 84334)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossCacheManager.java	2009-02-17 22:49:38 UTC (rev 84335)
@@ -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