[jboss-cvs] JBossAS SVN: r98101 - in trunk: component-matrix and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 21 16:17:33 EST 2009
Author: bstansberry at jboss.com
Date: 2009-12-21 16:17:33 -0500 (Mon, 21 Dec 2009)
New Revision: 98101
Modified:
trunk/cluster/src/resources/jboss-cache-manager.sar/META-INF/jboss-cache-configs.xml
trunk/cluster/src/resources/jboss-cache-manager.sar/META-INF/jboss-cache-manager-jboss-beans.xml
trunk/component-matrix/pom.xml
Log:
[JBAS-7570] Have CacheManager use JBC to parse configs rather than creating MC beans
Modified: trunk/cluster/src/resources/jboss-cache-manager.sar/META-INF/jboss-cache-configs.xml
===================================================================
--- trunk/cluster/src/resources/jboss-cache-manager.sar/META-INF/jboss-cache-configs.xml 2009-12-21 20:54:35 UTC (rev 98100)
+++ trunk/cluster/src/resources/jboss-cache-manager.sar/META-INF/jboss-cache-configs.xml 2009-12-21 21:17:33 UTC (rev 98101)
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<registry:cache-configs xmlns="urn:jboss:jbosscache-core:config:3.0"
- xmlns:registry="urn:jboss:jbosscache-core:cache-repo:3.0">
+<cache-configs xmlns="urn:jboss:jbosscache-core:cache-repo:3.2">
<!--
JBoss Cache configurations using the standard JBC 3.x config format
@@ -12,27 +11,411 @@
sar's jboss-cache-manager-jboss-beans.xml file is recommended.
-->
- <!-- An example config; not intended for use; just to illustrate JBC 3's
- config format and to comply with schema requirement for a cache-config
- element. Removing this example is recommended if a real config is added.
- -->
- <registry:cache-config name="example">
-
- <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000" nodeLockingScheme="pessimistic"/>
+ <cache-config name="standard-session-cache">
+ <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="pessimistic" useLockStriping="false"/>
+ <transaction transactionManagerLookupClass="org.jboss.cache.transaction.BatchModeTransactionManagerLookup"/>
+ <serialization useRegionBasedMarshalling="false"/>
+ <startup regionsInactiveOnStartup="false"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-SessionCache" mode="replication">
+ <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <!-- Choose sync or async -->
+ <async serializationExecutorPoolSize="0"/>
+ <!-- <sync replTimeout="17500"/> -->
+
+ <buddy enabled="false" poolName="default" communicationTimeout="17500">
+ <dataGravitation auto="false" removeOnFind="true" searchBackupTrees="true"/>
+ <locator>
+ <properties>
+ numBuddies=1
+ ignoreColocatedBuddies=true
+ </properties>
+ </locator>
+ </buddy>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+
+ <loaders passivation="true" shared="false">
+ <loader class="org.jboss.cache.loader.FileCacheLoader" async="false"
+ fetchPersistentState="true" purgeOnStartup="true">
+ <properties>
+ location=${jboss.server.data.dir}${/}session
+ ignoreModifications=false
+ checkCharacterPortability=false
+ </properties>
+ </loader>
+ </loaders>
+ </cache-config>
+
+ <cache-config name="field-granularity-session-cache">
+ <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="pessimistic" useLockStriping="false"/>
+ <transaction transactionManagerLookupClass="org.jboss.cache.transaction.BatchModeTransactionManagerLookup"/>
<serialization useRegionBasedMarshalling="true"/>
<startup regionsInactiveOnStartup="true"/>
- <clustering clusterName="${jboss.partition.name:DefaultPartition}-example" mode="r">
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-FieldSessionCache" mode="replication">
<stateRetrieval fetchInMemoryState="true" timeout="60000"/>
<jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
- <sync replTimeout="175000"/>
+ <!-- Choose sync or async -->
+ <async serializationExecutorPoolSize="0"/>
+ <!-- <sync replTimeout="17500"/> -->
+
+ <buddy enabled="false" poolName="default" communicationTimeout="17500">
+ <dataGravitation auto="false" removeOnFind="true" searchBackupTrees="true"/>
+ <locator>
+ <properties>
+ numBuddies=1
+ ignoreColocatedBuddies=true
+ </properties>
+ </locator>
+ </buddy>
</clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+
+ <loaders passivation="true" shared="false">
+ <loader class="org.jboss.cache.loader.FileCacheLoader" async="false"
+ fetchPersistentState="true" purgeOnStartup="true">
+ <properties>
+ location=${jboss.server.data.dir}${/}field-session
+ ignoreModifications=false
+ checkCharacterPortability=false
+ </properties>
+ </loader>
+ </loaders>
+ </cache-config>
+
+ <cache-config name="sfsb-cache">
+ <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="pessimistic" useLockStriping="false"/>
+ <transaction transactionManagerLookupClass="org.jboss.cache.transaction.BatchModeTransactionManagerLookup"/>
+ <serialization useRegionBasedMarshalling="false"/>
+ <startup regionsInactiveOnStartup="false"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-SFSBCache" mode="replication">
+ <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <!-- Choose sync or async -->
+ <async serializationExecutorPoolSize="0"/>
+ <!-- <sync replTimeout="17500"/> -->
+
+ <buddy enabled="false" poolName="default" communicationTimeout="17500">
+ <dataGravitation auto="false" removeOnFind="true" searchBackupTrees="true"/>
+ <locator>
+ <properties>
+ numBuddies=1
+ ignoreColocatedBuddies=true
+ </properties>
+ </locator>
+ </buddy>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+
+ <loaders passivation="true" shared="false">
+ <loader class="org.jboss.cache.loader.FileCacheLoader" async="false"
+ fetchPersistentState="true" purgeOnStartup="true">
+ <properties>
+ location=${jboss.server.data.dir}${/}sfsb
+ ignoreModifications=false
+ checkCharacterPortability=false
+ </properties>
+ </loader>
+ </loaders>
<eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+ </eviction>
+ </cache-config>
+
+ <cache-config name="ha-partition">
+ <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="pessimistic" useLockStriping="false"/>
+ <transaction transactionManagerLookupClass="org.jboss.cache.transaction.BatchModeTransactionManagerLookup"/>
+ <serialization useRegionBasedMarshalling="false"/>
+ <startup regionsInactiveOnStartup="false"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-HAPartitionCache" mode="replication">
+ <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <!-- Choose sync or async -->
+ <async serializationExecutorPoolSize="0"/>
+ <!-- <sync replTimeout="17500"/> -->
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ </cache-config>
+
+ <cache-config name="mvcc-entity">
+ <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="mvcc" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-mvcc-entity" mode="invalidation">
+ <stateRetrieval fetchInMemoryState="false" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <sync replTimeout="17500"/>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ <eviction wakeUpInterval="5000">
<default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
- <property name="maxNodes" value="5000" />
- <property name="timeToLive" value="1000" />
+ <property name="maxNodes">10000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ <property name="minTimeToLiveSeconds">120</property>
</default>
+ <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
</eviction>
- </registry:cache-config>
+ </cache-config>
+ <cache-config name="optimistic-entity">
+ <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="optimistic" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-opt-entity" mode="invalidation">
+ <stateRetrieval fetchInMemoryState="false" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <sync replTimeout="17500"/>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+ <property name="maxNodes">10000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ <property name="minTimeToLiveSeconds">120</property>
+ </default>
+ <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+ </eviction>
+ </cache-config>
-</registry:cache-configs>
+ <cache-config name="pessimistic-entity">
+ <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="pessimistic" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-pess-entity" mode="invalidation">
+ <stateRetrieval fetchInMemoryState="false" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <sync replTimeout="17500"/>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+ <property name="maxNodes">10000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ <property name="minTimeToLiveSeconds">120</property>
+ </default>
+ <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+ </eviction>
+ </cache-config>
+
+ <cache-config name="mvcc-entity-repeatable">
+ <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="mvcc" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-mvcc-entity-rr" mode="invalidation">
+ <stateRetrieval fetchInMemoryState="false" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <sync replTimeout="17500"/>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+ <property name="maxNodes">10000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ <property name="minTimeToLiveSeconds">120</property>
+ </default>
+ <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+ </eviction>
+ </cache-config>
+
+ <cache-config name="pessimistic-entity-repeatable">
+ <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="pessimistic" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-pess-entity-rr" mode="invalidation">
+ <stateRetrieval fetchInMemoryState="false" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <sync replTimeout="17500"/>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+ <property name="maxNodes">10000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ <property name="minTimeToLiveSeconds">120</property>
+ </default>
+ <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+ </eviction>
+ </cache-config>
+
+ <cache-config name="local-query">
+ <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="mvcc" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+ <property name="maxNodes">10000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ <property name="minTimeToLiveSeconds">120</property>
+ </default>
+ <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+ </eviction>
+ </cache-config>
+
+ <cache-config name="replicated-query">
+ <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="mvcc" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-query" mode="replication">
+ <stateRetrieval fetchInMemoryState="false" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <async serializationExecutorPoolSize="0"/>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+ <property name="maxNodes">10000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ <property name="minTimeToLiveSeconds">120</property>
+ </default>
+ <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+ </eviction>
+ </cache-config>
+
+ <cache-config name="timestamps-cache">
+ <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="mvcc" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-timestamps" mode="replication">
+ <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <async serializationExecutorPoolSize="0"/>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ </cache-config>
+
+ <cache-config name="mvcc-shared">
+ <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="mvcc" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-mvcc-shared" mode="replication">
+ <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <sync replTimeout="17500"/>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+ <property name="maxNodes">10000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ <property name="minTimeToLiveSeconds">120</property>
+ </default>
+ <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+ </eviction>
+ </cache-config>
+
+ <cache-config name="optimistic-shared">
+ <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="optimistic" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-opt-shared" mode="replication">
+ <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <sync replTimeout="17500"/>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+ <property name="maxNodes">10000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ <property name="minTimeToLiveSeconds">120</property>
+ </default>
+ <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+ </eviction>
+ </cache-config>
+
+ <cache-config name="pessimistic-shared">
+ <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="pessimistic" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-pess-shared" mode="replication">
+ <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <sync replTimeout="17500"/>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+ <property name="maxNodes">10000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ <property name="minTimeToLiveSeconds">120</property>
+ </default>
+ <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+ </eviction>
+ </cache-config>
+
+ <cache-config name="mvcc-shared-repeatable">
+ <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="mvcc" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-mvcc-shared-rr" mode="replication">
+ <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <sync replTimeout="17500"/>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+ <property name="maxNodes">10000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ <property name="minTimeToLiveSeconds">120</property>
+ </default>
+ <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+ </eviction>
+ </cache-config>
+
+ <cache-config name="pessimistic-shared-repeatable">
+ <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000"
+ nodeLockingScheme="pessimistic" useLockStriping="false"/>
+ <serialization useRegionBasedMarshalling="true"/>
+ <startup regionsInactiveOnStartup="true"/>
+ <clustering clusterName="${jboss.partition.name:DefaultPartition}-pess-shared-rr" mode="replication">
+ <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+ <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+ <sync replTimeout="17500"/>
+ </clustering>
+ <listeners asyncPoolSize="0"/>
+ <jmxStatistics enabled="true"/>
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+ <property name="maxNodes">10000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ <property name="minTimeToLiveSeconds">120</property>
+ </default>
+ <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+ </eviction>
+ </cache-config>
+
+</cache-configs>
Modified: trunk/cluster/src/resources/jboss-cache-manager.sar/META-INF/jboss-cache-manager-jboss-beans.xml
===================================================================
--- trunk/cluster/src/resources/jboss-cache-manager.sar/META-INF/jboss-cache-manager-jboss-beans.xml 2009-12-21 20:54:35 UTC (rev 98100)
+++ trunk/cluster/src/resources/jboss-cache-manager.sar/META-INF/jboss-cache-manager-jboss-beans.xml 2009-12-21 21:17:33 UTC (rev 98101)
@@ -55,1440 +55,9 @@
<bean name="CacheConfigurationRegistry" class="org.jboss.ha.cachemanager.DependencyInjectedConfigurationRegistry">
<!-- If users wish to add configs using a more familiar JBC config format
- they can add them to a cache-configs.xml file specified by this property.
- However, use of the microcontainer format used below is recommended.
- <property name="configResource">META-INF/jboss-cache-configs.xml</property>
- -->
+ they can add them to a cache-configs.xml file specified by this property.-->
+ <property name="configResource">META-INF/jboss-cache-configs.xml</property>
- <!-- The configurations. A Map<String name, Configuration config> -->
- <property name="newConfigurations">
- <map keyClass="java.lang.String" valueClass="org.jboss.cache.config.Configuration">
-
- <!-- The standard configurations follow. You can add your own and/or edit these. -->
-
- <!-- Standard cache used for web sessions -->
- <entry><key>standard-session-cache</key>
- <value>
- <bean name="StandardSessionCacheConfig" class="org.jboss.cache.config.Configuration">
-
- <!-- Provides batching functionality for caches that don't want to interact with regular JTA Transactions -->
- <property name="transactionManagerLookupClass">org.jboss.cache.transaction.BatchModeTransactionManagerLookup</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-SessionCache</property>
- <!-- Use a UDP (multicast) based stack. Need JGroups flow control (FC)
- because we are using asynchronous replication. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <property name="fetchInMemoryState">true</property>
-
- <property name="nodeLockingScheme">PESSIMISTIC</property>
- <property name="isolationLevel">REPEATABLE_READ</property>
- <property name="useLockStriping">false</property>
- <property name="cacheMode">REPL_ASYNC</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. Make this longer
- than lockAcquisitionTimeout.-->
- <property name="syncReplTimeout">17500</property>
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Not needed for a web session cache that doesn't use FIELD -->
- <property name="useRegionBasedMarshalling">false</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">false</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="exposeManagementStatistics">true</property>
-
- <property name="buddyReplicationConfig">
- <bean class="org.jboss.cache.config.BuddyReplicationConfig">
-
- <!-- Just set to true to turn on buddy replication -->
- <property name="enabled">false</property>
-
- <!-- A way to specify a preferred replication group. We try
- and pick a buddy who shares the same pool name (falling
- back to other buddies if not available). -->
- <property name="buddyPoolName">default</property>
-
- <property name="buddyCommunicationTimeout">17500</property>
-
- <!-- Do not change these -->
- <property name="autoDataGravitation">false</property>
- <property name="dataGravitationRemoveOnFind">true</property>
- <property name="dataGravitationSearchBackupTrees">true</property>
-
- <property name="buddyLocatorConfig">
- <bean class="org.jboss.cache.buddyreplication.NextMemberBuddyLocatorConfig">
- <!-- The number of backup copies we maintain -->
- <property name="numBuddies">1</property>
- <!-- Means that each node will *try* to select a buddy on
- a different physical host. If not able to do so
- though, it will fall back to colocated nodes. -->
- <property name="ignoreColocatedBuddies">true</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="cacheLoaderConfig">
- <bean class="org.jboss.cache.config.CacheLoaderConfig">
- <!-- Do not change these -->
- <property name="passivation">true</property>
- <property name="shared">false</property>
-
- <property name="individualCacheLoaderConfigs">
- <list>
- <bean class="org.jboss.cache.loader.FileCacheLoaderConfig">
- <!-- Where passivated sessions are stored -->
- <property name="location">${jboss.server.data.dir}${/}session</property>
- <!-- Do not change these -->
- <property name="async">false</property>
- <property name="fetchPersistentState">true</property>
- <property name="purgeOnStartup">true</property>
- <property name="ignoreModifications">false</property>
- <property name="checkCharacterPortability">false</property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!-- Appropriate for web sessions with FIELD granularity -->
- <entry><key>field-granularity-session-cache</key>
- <value>
-
- <bean name="FieldSessionCacheConfig" class="org.jboss.cache.config.Configuration">
-
- <!-- Provides batching functionality for caches that don't want to interact with regular JTA Transactions -->
- <property name="transactionManagerLookupClass">org.jboss.cache.transaction.BatchModeTransactionManagerLookup</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-FieldSessionCache</property>
- <!-- Use a UDP (multicast) based stack. Need JGroups flow control (FC)
- because we are using asynchronous replication. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <property name="fetchInMemoryState">true</property>
-
- <property name="nodeLockingScheme">PESSIMISTIC</property>
- <property name="isolationLevel">REPEATABLE_READ</property>
- <property name="useLockStriping">false</property>
- <property name="cacheMode">REPL_ASYNC</property>
-
- <property name="syncReplTimeout">17500</property>
- <property name="lockAcquisitionTimeout">15000</property>
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Field granularity requires region-based marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="exposeManagementStatistics">true</property>
-
- <property name="buddyReplicationConfig">
- <bean class="org.jboss.cache.config.BuddyReplicationConfig">
-
- <!-- Just set to true to turn on buddy replication -->
- <property name="enabled">false</property>
- <!-- A way to specify a preferred replication group. We try
- and pick a buddy who shares the same pool name (falling
- back to other buddies if not available). -->
- <property name="buddyPoolName">default</property>
- <property name="buddyCommunicationTimeout">17500</property>
-
- <!-- Do not change these -->
- <property name="autoDataGravitation">false</property>
- <property name="dataGravitationRemoveOnFind">true</property>
- <property name="dataGravitationSearchBackupTrees">true</property>
-
- <property name="buddyLocatorConfig">
- <bean class="org.jboss.cache.buddyreplication.NextMemberBuddyLocatorConfig">
- <!-- The number of backup nodes we maintain -->
- <property name="numBuddies">1</property>
- <!-- Means that each node will *try* to select a buddy on
- a different physical host. If not able to do so
- though, it will fall back to colocated nodes. -->
- <property name="ignoreColocatedBuddies">true</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="cacheLoaderConfig">
- <bean class="org.jboss.cache.config.CacheLoaderConfig">
- <!-- Do not change these -->
- <property name="passivation">true</property>
- <property name="shared">false</property>
-
- <property name="individualCacheLoaderConfigs">
- <list>
- <bean class="org.jboss.cache.loader.FileCacheLoaderConfig">
- <!-- Where passivated sessions are stored -->
- <property name="location">${jboss.server.data.dir}${/}field-session</property>
- <!-- Do not change these -->
- <property name="async">false</property>
- <property name="fetchPersistentState">true</property>
- <property name="purgeOnStartup">true</property>
- <property name="ignoreModifications">false</property>
- <property name="checkCharacterPortability">false</property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
-
- </bean>
- </value>
- </entry>
-
- <!-- Standard cache used for EJB3 SFSB caching -->
- <entry><key>sfsb-cache</key>
- <value>
- <bean name="StandardSFSBCacheConfig" class="org.jboss.cache.config.Configuration">
-
- <!-- No transaction manager lookup -->
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-SFSBCache</property>
- <!-- Use a UDP (multicast) based stack. Need JGroups flow control (FC)
- because we are using asynchronous replication. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <property name="fetchInMemoryState">true</property>
-
- <property name="nodeLockingScheme">PESSIMISTIC</property>
- <property name="isolationLevel">REPEATABLE_READ</property>
- <property name="useLockStriping">false</property>
- <property name="cacheMode">REPL_ASYNC</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. Make this longer
- than lockAcquisitionTimeout.-->
- <property name="syncReplTimeout">17500</property>
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!--
- SFSBs use region-based marshalling to provide for partial state
- transfer during deployment/undeployment.
- -->
- <property name="useRegionBasedMarshalling">false</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">false</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="exposeManagementStatistics">true</property>
-
- <property name="buddyReplicationConfig">
- <bean class="org.jboss.cache.config.BuddyReplicationConfig">
-
- <!-- Just set to true to turn on buddy replication -->
- <property name="enabled">false</property>
-
- <!-- A way to specify a preferred replication group. We try
- and pick a buddy who shares the same pool name (falling
- back to other buddies if not available). -->
- <property name="buddyPoolName">default</property>
-
- <property name="buddyCommunicationTimeout">17500</property>
-
- <!-- Do not change these -->
- <property name="autoDataGravitation">false</property>
- <property name="dataGravitationRemoveOnFind">true</property>
- <property name="dataGravitationSearchBackupTrees">true</property>
-
- <property name="buddyLocatorConfig">
- <bean class="org.jboss.cache.buddyreplication.NextMemberBuddyLocatorConfig">
- <!-- The number of backup nodes we maintain -->
- <property name="numBuddies">1</property>
- <!-- Means that each node will *try* to select a buddy on
- a different physical host. If not able to do so
- though, it will fall back to colocated nodes. -->
- <property name="ignoreColocatedBuddies">true</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="cacheLoaderConfig">
- <bean class="org.jboss.cache.config.CacheLoaderConfig">
- <!-- Do not change these -->
- <property name="passivation">true</property>
- <property name="shared">false</property>
-
- <property name="individualCacheLoaderConfigs">
- <list>
- <bean class="org.jboss.cache.loader.FileCacheLoaderConfig">
- <!-- Where passivated sessions are stored -->
- <property name="location">${jboss.server.data.dir}${/}sfsb</property>
- <!-- Do not change these -->
- <property name="async">false</property>
- <property name="fetchPersistentState">true</property>
- <property name="purgeOnStartup">true</property>
- <property name="ignoreModifications">false</property>
- <property name="checkCharacterPortability">false</property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
-
- <!-- EJBs use JBoss Cache eviction -->
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </property>
- <!-- EJB3 integration code will programatically create
- other regions as beans are deployed -->
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!--
- Appropriate for the HAPartition-based services, e.g. DistributedState,
- HA-JNDI. Also valid for use by the JBossWeb ClusteredSingleSignOn valve.
- -->
- <entry><key>ha-partition</key>
- <value>
-
- <bean name="HAPartitionCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Provides batching functionality for caches that don't want to interact with regular JTA Transactions -->
- <property name="transactionManagerLookupClass">org.jboss.cache.transaction.BatchModeTransactionManagerLookup</property>
-
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-HAPartitionCache</property>
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <property name="fetchInMemoryState">true</property>
-
- <property name="nodeLockingScheme">PESSIMISTIC</property>
- <property name="isolationLevel">REPEATABLE_READ</property>
- <property name="useLockStriping">false</property>
- <property name="cacheModeString">REPL_SYNC</property>
-
- <property name="syncReplTimeout">17500</property>
- <property name="lockAcquisitionTimeout">15000</property>
- <property name="stateRetrievalTimeout">60000</property>
-
- <property name="useRegionBasedMarshalling">false</property>
- <property name="inactiveOnStartup">false</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="exposeManagementStatistics">true</property>
- </bean>
- </value>
- </entry>
-
- <!--
- Following are JBoss Cache configurations suitable for different
- Hibernate 2nd Level Cache uses (e.g. entities vs. queries).
-
- In all cases, TransactionManager configuration not required.
- Hibernate will plug in its own transaction manager integration.
- -->
-
- <!-- A config appropriate for entity/collection caching that uses MVCC locking -->
- <entry><key>mvcc-entity</key>
- <value>
- <bean name="MVCCEntityCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">MVCC</property>
- <!-- READ_COMMITTED is as strong as necessary for most
- 2nd Level Cache use cases. -->
- <property name="isolationLevel">READ_COMMITTED</property>
- <property name="useLockStriping">false</property>
-
- <!-- Mode of communication with peer caches.
- INVALIDATION_SYNC is highly recommended as the mode for use
- with entity and collection caches. -->
- <property name="cacheMode">INVALIDATION_SYNC</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-mvcc-entity</property>
- <!-- Use a UDP (multicast) based stack. A udp-sync stack might be
- slightly better (no JGroups FC) but we stick with udp to
- help ensure this cache and others like timestamps-cache
- that require FC can use the same underlying JGroups resources. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <!-- Whether or not to fetch state on joining a cluster. -->
- <property name="fetchInMemoryState">false</property>
-
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. Ignored if FetchInMemoryState=false. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <property name="syncReplTimeout">17500</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- Hibernate 2LC can replicate custom types, so we use marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
- <!-- Evict LRU node once we have more than this number of nodes -->
- <property name="maxNodes">10000</property>
- <!-- And, evict any node that hasn't been accessed in this many seconds -->
- <property name="timeToLiveSeconds">1000</property>
- <!-- Don't evict a node that's been accessed within this many seconds.
- Set this to a value greater than your max expected transaction length. -->
- <property name="minTimeToLiveSeconds">120</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="evictionRegionConfigs">
- <list>
- <!-- Don't ever evict modification timestamps -->
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/TS</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!-- A config appropriate for entity/collection caching that uses optimistic locking. -->
- <entry><key>optimistic-entity</key>
- <value>
- <bean name="OptimisticEntityCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">OPTIMISTIC</property>
-
- <!-- Mode of communication with peer caches.
- INVALIDATION_SYNC is highly recommended as the mode for use
- with entity and collection caches. -->
- <property name="cacheMode">INVALIDATION_SYNC</property>
- <property name="useLockStriping">false</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-opt-entity</property>
- <!-- Use a UDP (multicast) based stack. A udp-sync stack might be
- slightly better (no JGroups FC) but we stick with udp to
- help ensure this cache and others like timestamps-cache
- that require FC can use the same underlying JGroups resources. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <!-- Whether or not to fetch state on joining a cluster. -->
- <property name="fetchInMemoryState">false</property>
-
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. Ignored if FetchInMemoryState=false. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <property name="syncReplTimeout">17500</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- Hibernate 2LC can replicate custom types, so we use marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
- <!-- Evict LRU node once we have more than this number of nodes -->
- <property name="maxNodes">10000</property>
- <!-- And, evict any node that hasn't been accessed in this many seconds -->
- <property name="timeToLiveSeconds">1000</property>
- <!-- Don't evict a node that's been accessed within this many seconds.
- Set this to a value greater than your max expected transaction length. -->
- <property name="minTimeToLiveSeconds">120</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="evictionRegionConfigs">
- <list>
- <!-- Don't ever evict modification timestamps -->
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/TS</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!-- A config appropriate for entity/collection caching that uses pessimistic locking -->
- <entry><key>pessimistic-entity</key>
- <value>
- <bean name="PessimisticEntityCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">PESSIMISTIC</property>
- <!-- READ_COMMITTED is as strong as necessary for most
- 2nd Level Cache use cases. -->
- <property name="isolationLevel">READ_COMMITTED</property>
- <property name="useLockStriping">false</property>
-
- <!-- Mode of communication with peer caches.
- INVALIDATION_SYNC is highly recommended as the mode for use
- with entity and collection caches. -->
- <property name="cacheMode">INVALIDATION_SYNC</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-pess-entity</property>
- <!-- Use a UDP (multicast) based stack. A udp-sync stack might be
- slightly better (no JGroups FC) but we stick with udp to
- help ensure this cache and others like timestamps-cache
- that require FC can use the same underlying JGroups resources. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <!-- Whether or not to fetch state on joining a cluster. -->
- <property name="fetchInMemoryState">false</property>
-
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. Ignored if FetchInMemoryState=false. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <property name="syncReplTimeout">17500</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- Hibernate 2LC can replicate custom types, so we use marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
- <!-- Evict LRU node once we have more than this number of nodes -->
- <property name="maxNodes">10000</property>
- <!-- And, evict any node that hasn't been accessed in this many seconds -->
- <property name="timeToLiveSeconds">1000</property>
- <!-- Don't evict a node that's been accessed within this many seconds.
- Set this to a value greater than your max expected transaction length. -->
- <property name="minTimeToLiveSeconds">120</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="evictionRegionConfigs">
- <list>
- <!-- Don't ever evict modification timestamps -->
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/TS</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!-- Same as "mvcc-entity" but here we use REPEATABLE_READ
- instead of READ_COMMITTED. REPEATABLE_READ is only useful if the
- application evicts/clears entities from the Hibernate Session and
- then expects to repeatably re-read them in the same transaction.
- Otherwise, the Session's internal cache provides a repeatable-read
- semantic. Before choosing this config, carefully read the docs
- and make sure you really need REPEATABLE_READ. -->
- <entry><key>mvcc-entity-repeatable</key>
- <value>
- <bean name="MVCCEntityRepeatableCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">MVCC</property>
- <!-- Here we use REPEATABLE_READ. -->
- <property name="isolationLevel">READ_COMMITTED</property>
- <property name="useLockStriping">false</property>
-
- <!-- Mode of communication with peer caches.
- INVALIDATION_SYNC is highly recommended as the mode for use
- with entity and collection caches. -->
- <property name="cacheMode">INVALIDATION_SYNC</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-mvcc-entity-rr</property>
- <!-- Use a UDP (multicast) based stack. A udp-sync stack might be
- slightly better (no JGroups FC) but we stick with udp to
- help ensure this cache and others like timestamps-cache
- that require FC can use the same underlying JGroups resources. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <!-- Whether or not to fetch state on joining a cluster. -->
- <property name="fetchInMemoryState">false</property>
-
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. Ignored if FetchInMemoryState=false. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <property name="syncReplTimeout">17500</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- Hibernate 2LC can replicate custom types, so we use marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
- <!-- Evict LRU node once we have more than this number of nodes -->
- <property name="maxNodes">10000</property>
- <!-- And, evict any node that hasn't been accessed in this many seconds -->
- <property name="timeToLiveSeconds">1000</property>
- <!-- Don't evict a node that's been accessed within this many seconds.
- Set this to a value greater than your max expected transaction length. -->
- <property name="minTimeToLiveSeconds">120</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="evictionRegionConfigs">
- <list>
- <!-- Don't ever evict modification timestamps -->
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/TS</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!-- Same as "pessimistic-entity" but here we use REPEATABLE_READ
- instead of READ_COMMITTED. REPEATABLE_READ is only useful if the
- application evicts/clears entities from the Hibernate Session and
- then expects to repeatably re-read them in the same transaction.
- Otherwise, the Session's internal cache provides a repeatable-read
- semantic. Before choosing this config, carefully read the docs
- and make sure you really need REPEATABLE_READ.
- -->
- <entry><key>pessimistic-entity-repeatable</key>
- <value>
- <bean name="PessimisticEntityRepeatableCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">PESSIMISTIC</property>
- <property name="isolationLevel">REPEATABLE_READ</property>
- <property name="useLockStriping">false</property>
-
- <!-- Mode of communication with peer caches.
- INVALIDATION_SYNC is highly recommended as the mode for use
- with entity and collection caches. -->
- <property name="cacheMode">INVALIDATION_SYNC</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-pess-entity-rr</property>
- <!-- Use a UDP (multicast) based stack. A udp-sync stack might be
- slightly better (no JGroups FC) but we stick with udp to
- help ensure this cache and others like timestamps-cache
- that require FC can use the same underlying JGroups resources. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <!-- Whether or not to fetch state on joining a cluster. -->
- <property name="fetchInMemoryState">false</property>
-
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. Ignored if FetchInMemoryState=false. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <property name="syncReplTimeout">17500</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- Hibernate 2LC can replicate custom types, so we use marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
- <!-- Evict LRU node once we have more than this number of nodes -->
- <property name="maxNodes">10000</property>
- <!-- And, evict any node that hasn't been accessed in this many seconds -->
- <property name="timeToLiveSeconds">1000</property>
- <!-- Don't evict a node that's been accessed within this many seconds.
- Set this to a value greater than your max expected transaction length. -->
- <property name="minTimeToLiveSeconds">120</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="evictionRegionConfigs">
- <list>
- <!-- Don't ever evict modification timestamps -->
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/TS</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!-- A config appropriate for query caching. Does not replicate
- queries. DO NOT STORE TIMESTAMPS IN THIS CACHE. -->
- <entry><key>local-query</key>
- <value>
- <bean name="LocalQueryCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">OPTIMISTIC</property>
- <property name="useLockStriping">false</property>
-
- <!-- LOCAL means don't communicate with other caches. -->
- <property name="cacheMode">LOCAL</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
- <!-- Evict LRU node once we have more than this number of nodes -->
- <property name="maxNodes">10000</property>
- <!-- And, evict any node that hasn't been accessed in this many seconds -->
- <property name="timeToLiveSeconds">1000</property>
- <!-- Don't evict a node that's been accessed within this many seconds.
- Set this to a value greater than your max expected transaction length. -->
- <property name="minTimeToLiveSeconds">120</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="evictionRegionConfigs">
- <list>
- <!-- Don't ever evict modification timestamps -->
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/TS</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!-- A query cache that replicates querie results. Replication is asynchronous.
- DO NOT STORE TIMESTAMPS IN THIS CACHE as no initial state transfer
- is performed. -->
- <entry><key>replicated-query</key>
- <value>
- <bean name="ReplicatedQueryCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">OPTIMISTIC</property>
- <property name="useLockStriping">false</property>
-
- <!-- Mode of communication with peer caches.
- REPL_ASYNC means replicate but sender does not block waiting for
- peers to acknowledge applying the change. Valid for queries as
- the timestamp cache mechanism will allow Hibernate to discard
- out-of-date queries. -->
- <property name="cacheMode">REPL_ASYNC</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-query</property>
- <!-- Use a UDP (multicast) based stack. Need JGroups flow control (FC)
- because timestamp communication will not require a synchronous response. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <!-- Whether or not to fetch state on joining a cluster. -->
- <property name="fetchInMemoryState">false</property>
-
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. Ignored if FetchInMemoryState=false. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <property name="syncReplTimeout">17500</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- Hibernate 2LC can replicate custom types, so we use marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
- <!-- Evict LRU node once we have more than this number of nodes -->
- <property name="maxNodes">10000</property>
- <!-- And, evict any node that hasn't been accessed in this many seconds -->
- <property name="timeToLiveSeconds">1000</property>
- <!-- Don't evict a node that's been accessed within this many seconds.
- Set this to a value greater than your max expected transaction length. -->
- <property name="minTimeToLiveSeconds">120</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="evictionRegionConfigs">
- <list>
- <!-- Don't ever evict modification timestamps -->
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/TS</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!-- Optimized for timestamp caching. A clustered timestamp cache
- is required if query caching is used, even if the query cache
- itself is configured with CacheMode=LOCAL.
- -->
- <entry><key>timestamps-cache</key>
- <value>
- <bean name="TimestampsCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">MVCC</property>
- <!-- READ_COMMITTED is as strong as necessary -->
- <property name="isolationLevel">READ_COMMITTED</property>
- <property name="useLockStriping">false</property>
-
- <!-- Cannot be INVALIDATION. ASYNC for improved performance. -->
- <property name="cacheMode">REPL_ASYNC</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-timestamps</property>
- <!-- Use a UDP (multicast) based stack. Need JGroups flow control (FC)
- because timestamp communication will not require a synchronous response. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <!-- Used for timestamps, so must fetch state. -->
- <property name="fetchInMemoryState">true</property>
-
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. Ignored if FetchInMemoryState=false. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <property name="syncReplTimeout">17500</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- Hibernate 2LC can replicate custom types, so we use marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <!-- We should never evict timestamps, so eviction is disabled -->
-
- </bean>
- </value>
- </entry>
-
- <!-- A config appropriate for a cache that's shared for
- entity, collection, query and timestamp caching. Not an advised
- configuration, since it requires cache mode REPL_SYNC, which is the
- least efficient mode. Also requires a full state transfer at startup,
- which can be expensive. Uses mvcc locking. -->
- <entry><key>mvcc-shared</key>
- <value>
- <bean name="MVCCSharedCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">MVCC</property>
- <!-- READ_COMMITTED is as strong as necessary for most
- 2nd Level Cache use cases. -->
- <property name="isolationLevel">READ_COMMITTED</property>
- <property name="useLockStriping">false</property>
-
- <!-- Must use REPL since used for timestamp caching.
- Must use SYNC to maintain cache coherency for entities. -->
- <property name="cacheMode">REPL_SYNC</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-mvcc-shared</property>
- <!-- Use a UDP (multicast) based stack. Need JGroups flow control (FC)
- because timestamp communication will not require a synchronous response. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <!-- Used for timestamps, so must fetch state. -->
- <property name="fetchInMemoryState">true</property>
-
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. Ignored if FetchInMemoryState=false. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <property name="syncReplTimeout">17500</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- Hibernate 2LC can replicate custom types, so we use marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
- <!-- Evict LRU node once we have more than this number of nodes -->
- <property name="maxNodes">10000</property>
- <!-- And, evict any node that hasn't been accessed in this many seconds -->
- <property name="timeToLiveSeconds">1000</property>
- <!-- Don't evict a node that's been accessed within this many seconds.
- Set this to a value greater than your max expected transaction length. -->
- <property name="minTimeToLiveSeconds">120</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="evictionRegionConfigs">
- <list>
- <!-- Don't ever evict modification timestamps -->
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/TS</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!-- A config appropriate for a cache that's shared for
- entity, collection, query and timestamp caching. Not an advised
- configuration, since it requires cache mode REPL_SYNC, which is the
- least efficient mode. Also requires a full state transfer at startup,
- which can be expensive. Uses optimistic locking -->
- <entry><key>optimistic-shared</key>
- <value>
- <bean name="OptimisticSharedCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">OPTIMISTIC</property>
- <property name="useLockStriping">false</property>
-
- <!-- Must use REPL since used for timestamp caching.
- Must use SYNC to maintain cache coherency for entities. -->
- <property name="cacheMode">REPL_SYNC</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-opt-shared</property>
- <!-- Use a UDP (multicast) based stack. Need JGroups flow control (FC)
- because timestamp communication will not require a synchronous response. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <!-- Used for timestamps, so must fetch state. -->
- <property name="fetchInMemoryState">true</property>
-
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. Ignored if FetchInMemoryState=false. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <property name="syncReplTimeout">17500</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- Hibernate 2LC can replicate custom types, so we use marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
- <!-- Evict LRU node once we have more than this number of nodes -->
- <property name="maxNodes">10000</property>
- <!-- And, evict any node that hasn't been accessed in this many seconds -->
- <property name="timeToLiveSeconds">1000</property>
- <!-- Don't evict a node that's been accessed within this many seconds.
- Set this to a value greater than your max expected transaction length. -->
- <property name="minTimeToLiveSeconds">120</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="evictionRegionConfigs">
- <list>
- <!-- Don't ever evict modification timestamps -->
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/TS</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!-- A config appropriate for a cache that's shared for
- entity, collection, query and timestamp caching. Not an advised
- configuration, since it requires cache mode REPL_SYNC, which is the
- least efficient mode. Also requires a full state transfer at startup,
- which can be expensive. Uses pessmistic locking. -->
- <entry><key>pessimistic-shared</key>
- <value>
- <bean name="PessimisticSharedCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">PESSIMISTIC</property>
- <!-- READ_COMMITTED is as strong as necessary for most
- 2nd Level Cache use cases. -->
- <property name="isolationLevel">READ_COMMITTED</property>
- <property name="useLockStriping">false</property>
-
- <!-- Must use REPL since used for timestamp caching.
- Must use SYNC to maintain cache coherency for entities. -->
- <property name="cacheMode">REPL_SYNC</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-pess-shared</property>
- <!-- Use a UDP (multicast) based stack. Need JGroups flow control (FC)
- because timestamp communication will not require a synchronous response. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <!-- Used for timestamps, so must fetch state. -->
- <property name="fetchInMemoryState">true</property>
-
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. Ignored if FetchInMemoryState=false. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <property name="syncReplTimeout">17500</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- Hibernate 2LC can replicate custom types, so we use marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
- <!-- Evict LRU node once we have more than this number of nodes -->
- <property name="maxNodes">10000</property>
- <!-- And, evict any node that hasn't been accessed in this many seconds -->
- <property name="timeToLiveSeconds">1000</property>
- <!-- Don't evict a node that's been accessed within this many seconds.
- Set this to a value greater than your max expected transaction length. -->
- <property name="minTimeToLiveSeconds">120</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="evictionRegionConfigs">
- <list>
- <!-- Don't ever evict modification timestamps -->
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/TS</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!-- Same as "mvcc-shared" but here we use REPEATABLE_READ
- instead of READ_COMMITTED. REPEATABLE_READ is only useful if the
- application evicts/clears entities from the Hibernate Session and
- then expects to repeatably re-read them in the same transaction.
- Otherwise, the Session's internal cache provides a repeatable-read
- semantic. Before choosing this config, carefully read the docs
- and make sure you really need REPEATABLE_READ. -->
- <entry><key>mvcc-shared-repeatable</key>
- <value>
- <bean name="MVCCSharedRepeatableCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">MVCC</property>
- <!-- READ_COMMITTED is as strong as necessary for most
- 2nd Level Cache use cases. -->
- <property name="isolationLevel">REPEATABLE_READ</property>
- <property name="useLockStriping">false</property>
-
- <!-- Must use REPL since used for timestamp caching.
- Must use SYNC to maintain cache coherency for entities. -->
- <property name="cacheMode">REPL_SYNC</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-mvcc-shared-rr</property>
- <!-- Use a UDP (multicast) based stack. Need JGroups flow control (FC)
- because timestamp communication will not require a synchronous response. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <!-- Used for timestamps, so must fetch state. -->
- <property name="fetchInMemoryState">true</property>
-
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. Ignored if FetchInMemoryState=false. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <property name="syncReplTimeout">17500</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- Hibernate 2LC can replicate custom types, so we use marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
- <!-- Evict LRU node once we have more than this number of nodes -->
- <property name="maxNodes">10000</property>
- <!-- And, evict any node that hasn't been accessed in this many seconds -->
- <property name="timeToLiveSeconds">1000</property>
- <!-- Don't evict a node that's been accessed within this many seconds.
- Set this to a value greater than your max expected transaction length. -->
- <property name="minTimeToLiveSeconds">120</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="evictionRegionConfigs">
- <list>
- <!-- Don't ever evict modification timestamps -->
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/TS</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- <!-- Same as "pessimistic-shared" but here we use REPEATABLE_READ
- instead of READ_COMMITTED. REPEATABLE_READ is only useful if the
- application evicts/clears entities from the Hibernate Session and
- then expects to repeatably re-read them in the same transaction.
- Otherwise, the Session's internal cache provides a repeatable-read
- semantic. Before choosing this config, carefully read the docs
- and make sure you really need REPEATABLE_READ. -->
- <entry><key>pessimistic-shared-repeatable</key>
- <value>
- <bean name="PessimisticSharedRepeatableCache" class="org.jboss.cache.config.Configuration">
-
- <!-- Node locking scheme -->
- <property name="nodeLockingScheme">PESSIMISTIC</property>
- <property name="isolationLevel">REPEATABLE_READ</property>
- <property name="useLockStriping">false</property>
-
- <!-- Must use REPL since used for timestamp caching.
- Must use SYNC to maintain cache coherency for entities. -->
- <property name="cacheMode">REPL_SYNC</property>
-
- <!-- Name of cluster. Needs to be the same for all members -->
- <property name="clusterName">${jboss.partition.name:DefaultPartition}-pess-shared-rr</property>
- <!-- Use a UDP (multicast) based stack. Need JGroups flow control (FC)
- because timestamp communication will not require a synchronous response. -->
- <property name="multiplexerStack">${jboss.default.jgroups.stack:udp}</property>
- <!-- Used for timestamps, so must fetch state. -->
- <property name="fetchInMemoryState">true</property>
-
- <!-- The max amount of time (in milliseconds) we wait until the
- state (ie. the contents of the cache) are retrieved from
- existing members at startup. Ignored if FetchInMemoryState=false. -->
- <property name="stateRetrievalTimeout">60000</property>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <property name="syncReplTimeout">17500</property>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <property name="lockAcquisitionTimeout">15000</property>
-
- <!-- Hibernate 2LC can replicate custom types, so we use marshalling -->
- <property name="useRegionBasedMarshalling">true</property>
- <!-- Must match the value of "useRegionBasedMarshalling" -->
- <property name="inactiveOnStartup">true</property>
-
- <!-- Disable asynchronous RPC marshalling/sending -->
- <property name="serializationExecutorPoolSize">0</property>
- <!-- We have no asynchronous notification listeners -->
- <property name="listenerAsyncPoolSize">0</property>
-
- <property name="evictionConfig">
- <bean class="org.jboss.cache.config.EvictionConfig">
- <property name="wakeupInterval">5000</property>
- <!-- Overall default -->
- <property name="defaultEvictionRegionConfig">
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
- <!-- Evict LRU node once we have more than this number of nodes -->
- <property name="maxNodes">10000</property>
- <!-- And, evict any node that hasn't been accessed in this many seconds -->
- <property name="timeToLiveSeconds">1000</property>
- <!-- Don't evict a node that's been accessed within this many seconds.
- Set this to a value greater than your max expected transaction length. -->
- <property name="minTimeToLiveSeconds">120</property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="evictionRegionConfigs">
- <list>
- <!-- Don't ever evict modification timestamps -->
- <bean class="org.jboss.cache.config.EvictionRegionConfig">
- <property name="regionName">/TS</property>
- <property name="evictionAlgorithmConfig">
- <bean class="org.jboss.cache.eviction.NullEvictionAlgorithmConfig"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </property>
- </bean>
- </value>
- </entry>
-
- </map>
- </property>
</bean>
</deployment>
\ No newline at end of file
Modified: trunk/component-matrix/pom.xml
===================================================================
--- trunk/component-matrix/pom.xml 2009-12-21 20:54:35 UTC (rev 98100)
+++ trunk/component-matrix/pom.xml 2009-12-21 21:17:33 UTC (rev 98101)
@@ -76,7 +76,7 @@
<version.org.jboss.cache.core>3.2.1.GA</version.org.jboss.cache.core>
<version.org.jboss.cache.pojo>3.0.0.GA</version.org.jboss.cache.pojo>
<version.org.jboss.cl>2.0.8.GA</version.org.jboss.cl>
- <version.org.jboss.cluster.cache.jbc>2.1.1.BETA1</version.org.jboss.cluster.cache.jbc>
+ <version.org.jboss.cluster.cache.jbc>2.1.1.BETA2</version.org.jboss.cluster.cache.jbc>
<version.org.jboss.cluster.cache.spi>2.0.0.GA</version.org.jboss.cluster.cache.spi>
<version.org.jboss.cluster.client>1.1.1.GA</version.org.jboss.cluster.client>
<version.org.jboss.cluster.server.api>1.1.1.GA</version.org.jboss.cluster.server.api>
More information about the jboss-cvs-commits
mailing list