[jboss-cvs] JBossAS SVN: r58143 - trunk/ejb3/src/resources
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Nov 6 00:06:26 EST 2006
Author: bstansberry at jboss.com
Date: 2006-11-06 00:06:25 -0500 (Mon, 06 Nov 2006)
New Revision: 58143
Added:
trunk/ejb3/src/resources/ejb3-clustered-sfsbcache-beans.xml
trunk/ejb3/src/resources/ejb3-entity-cache-beans.xml
Log:
Add 1st cut at MC replacements for clustered cache service.xml files
Added: trunk/ejb3/src/resources/ejb3-clustered-sfsbcache-beans.xml
===================================================================
--- trunk/ejb3/src/resources/ejb3-clustered-sfsbcache-beans.xml 2006-11-06 05:05:02 UTC (rev 58142)
+++ trunk/ejb3/src/resources/ejb3-clustered-sfsbcache-beans.xml 2006-11-06 05:06:25 UTC (rev 58143)
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <!-- First we create a Configuration object for the cache -->
+ <bean name="EJB3SFSBCacheConfig"
+ class="org.jboss.cache.config.Configuration">
+
+ <property name="multiplexerService">jgroups.mux:name=Multiplexer</property>
+ <property name="multiplexerStack">${jboss.multiplexer.stack:udp}</property>
+
+ <property name="clusterName">${jboss.partition.name:DefaultPartition}-SFSBCache</property>
+
+ <!--
+ Node locking level : SERIALIZABLE
+ REPEATABLE_READ (default)
+ READ_COMMITTED
+ READ_UNCOMMITTED
+ NONE
+ -->
+ <property name="isolationLevelString">REPEATABLE_READ</property>
+
+ <!-- Valid modes are LOCAL
+ REPL_ASYNC
+ REPL_SYNC
+ -->
+ <property name="cacheModeString">REPL_ASYNC</property>
+
+ <!-- Number of milliseconds to wait until all responses for a
+ synchronous call have been received.
+ -->
+ <property name="syncReplTimeout">15000</property>
+
+ <!-- Max number of milliseconds to wait for a lock acquisition -->
+ <property name="lockAcquisitionTimeout">16000</property>
+
+ <!-- Specific eviction policy configurations. This is LRU -->
+ <property name="evictionConfig">
+ <bean name="EJB3SFSBEvictionConfig" class="org.jboss.cache.config.EvictionConfig">
+ <property name="defaultEvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</property>
+ <property name="wakeupIntervalSeconds">5</property>
+ <property name="evictionRegionConfigs">
+ <list>
+ <!-- So default region would never timeout -->
+ <bean name="EJB3SFSBDefaultEvictionRegionConfig" class="org.jboss.cache.config.EvictionRegionConfig">
+ <property name="regionName">/_default_</property>
+ <property name="evictionPolicyConfig">
+ <bean name="EJB3SFSBDefaultLRUConfig" class="org.jboss.cache.eviction.LRUConfiguration">
+ <property name="maxNodes">0</property>
+ <property name="timeToLiveSeconds">0</property>
+ </bean>
+ </property>
+ </bean>
+ </list>
+ </property>
+ </bean>
+ </property>
+
+ <property name="cacheLoaderConfig">
+ <bean name="EJB3SFSBCacheLoaderConfig"
+ class="org.jboss.cache.config.CacheLoaderConfig">
+
+ <property name="passivation">true</property>
+ <property name="preload">/</property>
+ <property name="shared">false</property>
+ <property name="individualCacheLoaderConfigs">
+ <list>
+ <bean name="EJB3SFSBFileCacheLoader" class="org.jboss.cache.loader.FileCacheLoaderConfig">
+ <property name="location">${jboss.server.data.dir}${/}sfsb</property>
+ <property name="async">false</property>
+ <property name="fetchPersistentState">false</property>
+ <property name="ignoreModifications">false</property>
+ </bean>
+ </list>
+ </property>
+ </bean>
+ </property>
+ </bean>
+
+ <!-- Now we use the above configuration to construct the cache itself -->
+ <bean name="EJB3SFSBClusteredCache" class="org.jboss.cache.jmx.CacheJmxWrapper">
+
+ <depends>jboss:service=Naming</depends>
+ <depends>jboss:service=TransactionManager</depends>
+ <depends>jgroups.mux:name=Multiplexer</depends>
+
+ <property name="configuration"><inject bean="EJB3SFSBCacheConfig"/></property>
+ <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+ <property name="cacheObjectName">jboss.cache:service=EJB3SFSBClusteredCache,partition=${jboss.partition.name:DefaultPartition}</property>
+
+ </bean>
+
+</deployment>
+
Added: trunk/ejb3/src/resources/ejb3-entity-cache-beans.xml
===================================================================
--- trunk/ejb3/src/resources/ejb3-entity-cache-beans.xml 2006-11-06 05:05:02 UTC (rev 58142)
+++ trunk/ejb3/src/resources/ejb3-entity-cache-beans.xml 2006-11-06 05:06:25 UTC (rev 58143)
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <!-- First we create a Configuration object for the cache -->
+ <bean name="EJB3EntityCacheConfig"
+ class="org.jboss.cache.config.Configuration">
+
+ <property name="multiplexerService">jgroups.mux:name=Multiplexer</property>
+ <property name="multiplexerStack">${jboss.multiplexer.stack:udp}</property>
+
+ <property name="clusterName">${jboss.partition.name:DefaultPartition}-EntityCache</property>
+
+ <!-- Configure the TransactionManager -->
+ <property name="transactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</property>
+
+ <!--
+ Node locking level : SERIALIZABLE
+ REPEATABLE_READ (default)
+ READ_COMMITTED
+ READ_UNCOMMITTED
+ NONE
+ -->
+ <property name="isolationLevelString">REPEATABLE_READ</property>
+
+ <!-- Valid modes are LOCAL
+ REPL_ASYNC
+ REPL_SYNC
+ -->
+ <property name="cacheModeString">REPL_SYNC</property>
+
+ <!-- The max amount of time (in milliseconds) we wait until the
+ initial state (ie. the contents of the cache) are retrieved from
+ existing members in a clustered environment
+ -->
+ <property name="initialStateRetrievalTimeout">5000</property>
+
+ <!-- Number of milliseconds to wait until all responses for a
+ synchronous call have been received.
+ -->
+ <property name="syncReplTimeout">10000</property>
+
+ <!-- Max number of milliseconds to wait for a lock acquisition -->
+ <property name="lockAcquisitionTimeout">15000</property>
+
+ <!-- Specific eviction policy configurations. This is LRU -->
+ <property name="evictionConfig">
+ <bean name="EJB3EntityEvictionConfig" class="org.jboss.cache.config.EvictionConfig">
+ <property name="defaultEvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</property>
+ <property name="wakeupIntervalSeconds">5</property>
+ <property name="evictionRegionConfigs">
+ <list>
+ <!-- So default region would never timeout -->
+ <bean name="EJB3EntityDefaultEvictionRegionConfig" class="org.jboss.cache.config.EvictionRegionConfig">
+ <property name="regionName">/_default_</property>
+ <property name="evictionPolicyConfig">
+ <bean name="EJB3EntityDefaultLRUConfig" class="org.jboss.cache.eviction.LRUConfiguration">
+ <property name="maxNodes">5000</property>
+ <property name="timeToLiveSeconds">1000</property>
+ </bean>
+ </property>
+ </bean>
+ </list>
+ </property>
+ </bean>
+ </property>
+
+ <property name="cacheLoaderConfig">
+ <bean name="EJB3EntityCacheLoaderConfig"
+ class="org.jboss.cache.config.CacheLoaderConfig">
+
+ <property name="passivation">true</property>
+ <property name="preload">/</property>
+ <property name="shared">false</property>
+ <property name="individualCacheLoaderConfigs">
+ <list>
+ <bean name="EJB3EntityFileCacheLoader" class="org.jboss.cache.loader.FileCacheLoaderConfig">
+ <property name="location">${jboss.server.data.dir}${/}sfsb</property>
+ <property name="async">false</property>
+ <property name="fetchPersistentState">false</property>
+ <property name="ignoreModifications">false</property>
+ </bean>
+ </list>
+ </property>
+ </bean>
+ </property>
+ </bean>
+
+ <!-- Now we use the above configuration to construct the cache itself -->
+ <bean name="EJB3EntityCache" class="org.jboss.cache.jmx.CacheJmxWrapper">
+
+ <depends>jboss:service=Naming</depends>
+ <depends>jboss:service=TransactionManager</depends>
+ <depends>jgroups.mux:name=Multiplexer</depends>
+
+ <property name="configuration"><inject bean="EJB3EntityCacheConfig"/></property>
+ <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+ <property name="cacheObjectName">jboss.cache:service=EJB3EntityClusteredCache,partition=${jboss.partition.name:DefaultPartition}</property>
+
+ </bean>
+
+</deployment>
+
More information about the jboss-cvs-commits
mailing list