[jboss-cvs] JBossAS SVN: r108970 - projects/cluster/ha-server-cache-ispn/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/ispn.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 28 12:56:32 EDT 2010
Author: pferraro
Date: 2010-10-28 12:56:30 -0400 (Thu, 28 Oct 2010)
New Revision: 108970
Modified:
projects/cluster/ha-server-cache-ispn/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/ispn/DistributedCacheManager.java
Log:
Use cache's distributedSyncTimeout for session ownership timeout.
Modified: projects/cluster/ha-server-cache-ispn/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/ispn/DistributedCacheManager.java
===================================================================
--- projects/cluster/ha-server-cache-ispn/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/ispn/DistributedCacheManager.java 2010-10-28 14:40:48 UTC (rev 108969)
+++ projects/cluster/ha-server-cache-ispn/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/ispn/DistributedCacheManager.java 2010-10-28 16:56:30 UTC (rev 108970)
@@ -441,8 +441,10 @@
{
trace("acquireSessionOwnership(%s, %s)", sessionId, newLock);
- LockResult result = lockResultMap.get(this.lockManager.lock(this.getSessionLockKey(sessionId), this.sessionCache.getAdvancedCache().getConfiguration().getLockAcquisitionTimeout(), newLock));
+ EmbeddedCacheManager container = (EmbeddedCacheManager) this.sessionCache.getCacheManager();
+ LockResult result = lockResultMap.get(this.lockManager.lock(this.getSessionLockKey(sessionId), container.getGlobalConfiguration().getDistributedSyncTimeout(), newLock));
+
return (result != null) ? result : LockResult.UNSUPPORTED;
}
More information about the jboss-cvs-commits
mailing list