Author: julien_viet
Date: 2010-03-12 03:31:06 -0500 (Fri, 12 Mar 2010)
New Revision: 2197
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/POMSessionManager.java
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/common/common-configuration.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/portal/portal-configuration.xml
Log:
GTNPORTAL-828 : Use org.jboss.cache.eviction.ExpirationAlgorithm eviction policy for MOP
cache.
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/POMSessionManager.java
===================================================================
---
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/POMSessionManager.java 2010-03-12
07:26:00 UTC (rev 2196)
+++
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/POMSessionManager.java 2010-03-12
08:31:06 UTC (rev 2197)
@@ -62,7 +62,7 @@
//
this.repositoryService = repositoryService;
this.manager = manager;
- this.cache =
cacheService.getCacheInstance(POMSessionManager.class.getSimpleName());
+ this.cache = cacheService.getCacheInstance("MOPSessionManager");
this.pomService = null;
this.executor = new DataCache(new ExecutorDispatcher());
}
Modified:
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/common/common-configuration.xml
===================================================================
---
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/common/common-configuration.xml 2010-03-12
07:26:00 UTC (rev 2196)
+++
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/common/common-configuration.xml 2010-03-12
08:31:06 UTC (rev 2197)
@@ -177,6 +177,11 @@
<object
type="org.exoplatform.services.cache.impl.jboss.lru.LRUExoCacheCreator"></object>
</object-param>
<object-param>
+ <name>EA</name>
+ <description>The EA cache creator</description>
+ <object
type="org.exoplatform.services.cache.impl.jboss.ea.EAExoCacheCreator"></object>
+ </object-param>
+ <object-param>
<name>simple</name>
<description>The Simple cache creator</description>
<object
type="org.exoplatform.commons.cache.SimpleExoCacheCreator"></object>
Modified:
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/portal/portal-configuration.xml
===================================================================
---
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/portal/portal-configuration.xml 2010-03-12
07:26:00 UTC (rev 2196)
+++
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/portal/portal-configuration.xml 2010-03-12
08:31:06 UTC (rev 2197)
@@ -280,12 +280,12 @@
<type>org.exoplatform.services.cache.ExoCacheConfigPlugin</type>
<description>add Exo Cache Config</description>
<init-params>
- <object-param profiles="cluster">
- <name>cache.config.POMSessionManager</name>
- <description>The JBoss Cache LRU configuration</description>
- <object
type="org.exoplatform.services.cache.impl.jboss.lru.LRUExoCacheConfig">
+ <object-param>
+ <name>cache.config.MOPSessionManager</name>
+ <description>The JBoss Cache configuration for the MOP session
Manager</description>
+ <object
type="org.exoplatform.services.cache.impl.jboss.ea.EAExoCacheConfig">
<field name="name">
- <string>POMSessionManager</string>
+ <string>MOPSessionManager</string>
</field>
<field name="maxNodes">
<int>10000</int>
Show replies by date