[jboss-cvs] JBossAS SVN: r58144 - trunk/tomcat/src/resources
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Nov 6 00:07:26 EST 2006
Author: bstansberry at jboss.com
Date: 2006-11-06 00:07:25 -0500 (Mon, 06 Nov 2006)
New Revision: 58144
Added:
trunk/tomcat/src/resources/tc6-cluster-beans.xml
Log:
Add 1st cut at MC replacement for tc6-cluster-service.xml
Added: trunk/tomcat/src/resources/tc6-cluster-beans.xml
===================================================================
--- trunk/tomcat/src/resources/tc6-cluster-beans.xml 2006-11-06 05:06:25 UTC (rev 58143)
+++ trunk/tomcat/src/resources/tc6-cluster-beans.xml 2006-11-06 05:07:25 UTC (rev 58144)
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ The bootstrap of the server
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <!-- First we create a Configuration object for the cache -->
+ <bean name="TomcatClusteringCacheConfig" 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}-TomcatCache</property>
+
+ <property name="transactionManagerLookupClass">org.jboss.cache.BatchModeTransactionManagerLookup</property>
+
+ <property name="nodeLockingSchemeString" class="java.lang.String">PESSIMISTIC</property>
+ <property name="isolationLevelString" class="java.lang.String">REPEATABLE_READ</property>
+ <property name="cacheModeString">REPL_ASYNC</property>
+
+ <property name="syncReplTimeout">20000</property>
+ <property name="lockAcquisitionTimeout">15000</property>
+
+ <property name="useRegionBasedMarshalling">false</property>
+ <property name="inactiveOnStartup">false</property>
+
+ <property name="buddyReplicationConfig">
+ <bean name="TomcatClusteringBuddyReplicationConfig"
+ class="org.jboss.cache.config.BuddyReplicationConfig">
+
+ <property name="enabled">true</property>
+ <property name="buddyPoolName">default</property>
+ <property name="buddyCommunicationTimeout">2000</property>
+
+ <property name="autoDataGravitation">false</property>
+ <property name="dataGravitationRemoveOnFind">true</property>
+ <property name="dataGravitationSearchBackupTrees">true</property>
+
+ <property name="buddyLocatorConfig">
+ <bean name="TomcatClusteringBuddyLocatorConfig" class="org.jboss.cache.buddyreplication.NextMemberBuddyLocatorConfig">
+ <property name="numBuddies">1</property>
+ <property name="ignoreColocatedBuddies">true</property>
+ </bean>
+ </property>
+ </bean>
+ </property>
+
+ <property name="cacheLoaderConfig">
+ <bean name="TomcatClusteringCacheLoaderConfig"
+ 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="TomcatClusteringFileCacheLoader" class="org.jboss.cache.loader.FileCacheLoaderConfig">
+ <property name="location">${java.io.tempdir}/tomcat-cluster</property>
+ <property name="async">true</property>
+ <property name="fetchPersistentState">true</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="TomcatClusteringCache" class="org.jboss.cache.pojo.jmx.PojoCacheJmxWrapper">
+ <!--annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.pojocache:service=TomcatClusterCache,partition=${jboss.partition.name:DefaultPartition}", exposedInterface=org.jboss.cache.pojo.jmx.PojoCacheJmxWrapperMBean.class)</annotation-->
+
+ <depends>jboss:service=Naming</depends>
+ <depends>jgroups.mux:name=Multiplexer</depends>
+
+ <property name="configuration"><inject bean="TomcatClusteringCacheConfig"/></property>
+ <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
+ <property name="pojoCacheObjectName">jboss.pojocache:service=TomcatClusterCache,partition=${jboss.partition.name:DefaultPartition}</property>
+
+ </bean>
+
+</deployment>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list