[Jboss-cvs] JBossAS SVN: r56145 - branches/Branch_4_0/ejb3/src/resources
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Aug 22 10:16:39 EDT 2006
Author: ben.wang at jboss.com
Date: 2006-08-22 10:16:36 -0400 (Tue, 22 Aug 2006)
New Revision: 56145
Modified:
branches/Branch_4_0/ejb3/src/resources/ejb3-clustered-sfsbcache-service.xml
Log:
updated with correct cacheloader setting.
Modified: branches/Branch_4_0/ejb3/src/resources/ejb3-clustered-sfsbcache-service.xml
===================================================================
--- branches/Branch_4_0/ejb3/src/resources/ejb3-clustered-sfsbcache-service.xml 2006-08-22 14:07:06 UTC (rev 56144)
+++ branches/Branch_4_0/ejb3/src/resources/ejb3-clustered-sfsbcache-service.xml 2006-08-22 14:16:36 UTC (rev 56145)
@@ -64,26 +64,49 @@
<attribute name="LockAcquisitionTimeout">15000</attribute>
<!-- Name of the eviction policy class. -->
- <attribute name="EvictionPolicyClass">org.jboss.ejb3.cache.tree.StatefulEvictionPolicy</attribute>
+ <attribute name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
<!-- Specific eviction policy configurations. This is LRU -->
<attribute name="EvictionPolicyConfig">
<config>
- <attribute name="wakeUpIntervalSeconds">1</attribute>
+ <attribute name="wakeUpIntervalSeconds">5</attribute>
<name>statefulClustered</name>
+ <!-- So default region would never timeout -->
<region name="/_default_">
- <attribute name="maxNodes">1000000</attribute>
- <attribute name="timeToIdleSeconds">300</attribute>
+ <attribute name="maxNodes">0</attribute>
+ <attribute name="timeToIdleSeconds">0</attribute>
</region>
</config>
</attribute>
- <attribute name="CacheLoaderFetchPersistentState">false</attribute>
- <attribute name="CacheLoaderFetchTransientState">true</attribute>
- <attribute name="FetchStateOnStartup">true</attribute>
- <attribute name="CacheLoaderClass">org.jboss.ejb3.cache.tree.StatefulCacheLoader</attribute>
- <attribute name="CacheLoaderConfig">location=statefulClustered</attribute>
+
+ <!-- New 1.3.x cache loader config block -->
+ <!-- Note this is used for AS5.0 only -->
+ <attribute name="CacheLoaderConfiguration">
+ <config>
+ <!-- We need to turn it on
+ <passivation>false</passivation>
+ -->
+ <passivation>true</passivation>
+ <preload>/</preload>
+ <shared>false</shared>
+
+ <cacheloader>
+ <class>org.jboss.cache.loader.FileCacheLoader</class>
+ <!--
+ -->
+ <properties>
+ location=${jboss.server.data.dir}${/}sfsb
+ </properties>
+ <async>false</async>
+ <fetchPersistentState>false</fetchPersistentState>
+ <ignoreModifications>false</ignoreModifications>
+ </cacheloader>
+
+ </config>
+ </attribute>
+
</mbean>
</server>
More information about the jboss-cvs-commits
mailing list