Author: thomas.heute(a)jboss.com
Date: 2010-02-26 02:55:31 -0500 (Fri, 26 Feb 2010)
New Revision: 1877
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/cache/DataCache.java
portal/trunk/packaging/module/src/main/javascript/portal.packaging.module.js
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/portal/portal-configuration.xml
Log:
GTNPORTAL-770: Enable JBoss Cache on the MOPSessionManager
Configuring the POMSessionManager cache
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/cache/DataCache.java
===================================================================
---
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/cache/DataCache.java 2010-02-26
06:48:02 UTC (rev 1876)
+++
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/cache/DataCache.java 2010-02-26
07:55:31 UTC (rev 1877)
@@ -47,7 +47,7 @@
public <V> V execute(POMSession session, POMTask<V> task) throws
Exception
{
- if (task instanceof CacheableDataTask && !cluster)
+ if (task instanceof CacheableDataTask)
{
CacheableDataTask<?, V> loadTask = (CacheableDataTask<?, V>)task;
switch (loadTask.getAccessMode())
Modified: portal/trunk/packaging/module/src/main/javascript/portal.packaging.module.js
===================================================================
---
portal/trunk/packaging/module/src/main/javascript/portal.packaging.module.js 2010-02-26
06:48:02 UTC (rev 1876)
+++
portal/trunk/packaging/module/src/main/javascript/portal.packaging.module.js 2010-02-26
07:55:31 UTC (rev 1877)
@@ -163,6 +163,7 @@
addDependency(kernel.component.remote).
addDependency(kernel.component.cache).
addDependency(kernel.component.command).
+ addDependency(new Project("org.exoplatform.kernel",
"exo.kernel.component.ext.cache.impl.jboss.v3", "jar",
kernel.version)).
addDependency(core.component.database).
addDependency(core.component.organization).
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-02-26
06:48:02 UTC (rev 1876)
+++
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/portal/portal-configuration.xml 2010-02-26
07:55:31 UTC (rev 1877)
@@ -194,6 +194,18 @@
</component-plugins>
</component>
+ <component>
+ <key>org.exoplatform.services.cache.ExoCacheFactory</key>
+ <type>org.exoplatform.services.cache.impl.jboss.ExoCacheFactoryImpl
+ </type>
+ <init-params>
+ <value-param>
+ <name>cache.config.template</name>
+ <value>classpath:/conf/jcr/jbosscache/cluster/config.xml</value>
+ </value-param>
+ </init-params>
+ </component>
+
<external-component-plugins>
<target-component>org.exoplatform.services.organization.OrganizationService</target-component>
<component-plugin>
@@ -263,4 +275,54 @@
</component-plugin>
</external-component-plugins>
+ <external-component-plugins>
+ <target-component>org.exoplatform.services.cache.ExoCacheFactory
+ </target-component>
+ <component-plugin>
+ <name>addCreator</name>
+ <set-method>addCreator</set-method>
+ <type>org.exoplatform.services.cache.impl.jboss.ExoCacheCreatorPlugin
+ </type>
+ <description>add Exo Cache Creator</description>
+ <init-params>
+ <object-param>
+ <name>LRU</name>
+ <description>The LRU cache creator</description>
+ <object
+ type="org.exoplatform.services.cache.impl.jboss.lru.LRUExoCacheCreator"></object>
+ </object-param>
+ </init-params>
+ </component-plugin>
+ </external-component-plugins>
+
+ <external-component-plugins>
+ <target-component>org.exoplatform.services.cache.CacheService
+ </target-component>
+ <component-plugin>
+ <name>addExoCacheConfig</name>
+ <set-method>addExoCacheConfig</set-method>
+ <type>org.exoplatform.services.cache.ExoCacheConfigPlugin</type>
+ <description>add Exo Cache Config</description>
+ <init-params>
+ <object-param>
+ <name>cache.config.PomSessionManager</name>
+ <description>The JBoss Cache LRU configuration</description>
+ <object
+ type="org.exoplatform.services.cache.impl.jboss.lru.LRUExoCacheConfig">
+ <field name="name">
+ <string>PomSessionManager</string>
+ </field>
+ <field name="maxNodes">
+ <int>-1</int>
+ </field>
+ <field name="minTimeToLive">
+ <long>0</long>
+ </field>
+ </object>
+ </object-param>
+ </init-params>
+ </component-plugin>
+ </external-component-plugins>
+
+
</configuration>