[jbosscache-commits] JBoss Cache SVN: r6572 - core/trunk/src/main/resources/config-samples.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Sun Aug 17 12:57:08 EDT 2008
Author: mircea.markus
Date: 2008-08-17 12:57:07 -0400 (Sun, 17 Aug 2008)
New Revision: 6572
Modified:
core/trunk/src/main/resources/config-samples/cacheloader-enabled.xml
core/trunk/src/main/resources/config-samples/eviction-enabled.xml
Log:
fixed resource configuration files
Modified: core/trunk/src/main/resources/config-samples/cacheloader-enabled.xml
===================================================================
--- core/trunk/src/main/resources/config-samples/cacheloader-enabled.xml 2008-08-17 16:54:21 UTC (rev 6571)
+++ core/trunk/src/main/resources/config-samples/cacheloader-enabled.xml 2008-08-17 16:57:07 UTC (rev 6572)
@@ -19,16 +19,15 @@
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<!-- Specific eviction policy configurations -->
- <eviction wakeUpInterval="5000" defaultPolicyClass="org.jboss.cache.eviction.LRUPolicy"
- defaultEventQueueSize="200000">
+ <eviction wakeUpInterval="5000">
<!-- Cache wide default -->
- <default>
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm" eventQueueSize="200000">
<attribute name="maxNodes">5000</attribute>
- <attribute name="timeToLiveSeconds">3</attribute>
+ <attribute name="timeToLive">3000</attribute>
</default>
<region name="/org/jboss/test/data">
<attribute name="maxNodes">100</attribute>
- <attribute name="timeToLiveSeconds">3</attribute>
+ <attribute name="timeToLive">3000</attribute>
</region>
</eviction>
@@ -54,11 +53,11 @@
cache.jdbc.node.column=node
cache.jdbc.node.type=blob
cache.jdbc.parent.column=parent
- cache.jdbc.driver=com.mysql.jdbc.Driver
- cache.jdbc.url=jdbc:mysql://localhost:3306/jbossdb
- cache.jdbc.user=root
- cache.jdbc.password=
- cache.jdbc.sql-concat=concat(1,2)
+ cache.jdbc.sql-concat=1 || 2
+ cache.jdbc.driver = org.apache.derby.jdbc.EmbeddedDriver
+ cache.jdbc.url=jdbc:derby:jbossdb;create=true
+ cache.jdbc.user=user1
+ cache.jdbc.password=user1
</properties>
</loader>
</loaders>
Modified: core/trunk/src/main/resources/config-samples/eviction-enabled.xml
===================================================================
--- core/trunk/src/main/resources/config-samples/eviction-enabled.xml 2008-08-17 16:54:21 UTC (rev 6571)
+++ core/trunk/src/main/resources/config-samples/eviction-enabled.xml 2008-08-17 16:57:07 UTC (rev 6572)
@@ -23,31 +23,30 @@
defaultPolicyClass: if policy class is not specified for a region, this one is considered as default
defaultEventQueueSize if policy event queue size is not specified for a region, this one is considered as default
-->
- <eviction wakeUpInterval="5000" defaultPolicyClass="org.jboss.cache.eviction.LRUPolicy" defaultEventQueueSize="200000">
-
+ <eviction wakeUpInterval="5000">
<!-- Cache wide default -->
- <default>
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm" eventQueueSize="200000">
<attribute name="maxNodes">5000</attribute>
- <attribute name="timeToLiveSeconds">1000</attribute>
+ <attribute name="timeToLive">1000000</attribute>
</default>
<!-- configurations for various regions-->
<region name="/org/jboss/data">
<attribute name="maxNodes">5000</attribute>
- <attribute name="timeToLiveSeconds">1000</attribute>
+ <attribute name="timeToLive">1000000</attribute>
</region>
<region name="/org/jboss/test/data">
<attribute name="maxNodes">5</attribute>
- <attribute name="timeToLiveSeconds">4</attribute>
+ <attribute name="timeToLive">4000</attribute>
</region>
<region name="/test">
<attribute name="maxNodes">10000</attribute>
- <attribute name="timeToLiveSeconds">4</attribute>
+ <attribute name="timeToLive">4000</attribute>
</region>
<region name="/maxAgeTest">
<attribute name="maxNodes">10000</attribute>
- <attribute name="timeToLiveSeconds">8</attribute>
- <attribute name="maxAgeSeconds">10</attribute>
+ <attribute name="timeToLive">8000</attribute>
+ <attribute name="maxAge">10000</attribute>
</region>
</eviction>
</jbosscache>
More information about the jbosscache-commits
mailing list