[jboss-svn-commits] JBL Code SVN: r28949 - in labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build: cluster and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sun Aug 16 14:18:35 EDT 2009


Author: whitingjr
Date: 2009-08-16 14:18:34 -0400 (Sun, 16 Aug 2009)
New Revision: 28949

Added:
   labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/cluster/
   labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/cluster/cluster-cfg.xml
Modified:
   labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/build.xml
   labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/pom.xml
Log:
Added cluster configuration file.

Modified: labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/build.xml
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/build.xml	2009-08-16 14:36:43 UTC (rev 28948)
+++ labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/build.xml	2009-08-16 18:18:34 UTC (rev 28949)
@@ -75,7 +75,7 @@
 		<!--copy file="${basedir}/../MVCCSampleSTM/src/main/resources/versioning-aop.xml" todir="${JBOSS_HOME}/server/default/deploy"/-->
 		
 		<!--copy file="${basedir}/artifacts/STMDriverJAR.jar" todir="${JBOSS_HOME}/common/lib"/-->
-		<!--copy file="${basedir}/artifacts/STMAnnotationsJAR.aop" todir="${JBOSS_HOME}/server/default/deploy"/-->
+		<copy file="${basedir}/cluster/cluster-cfg.xml" todir="${JBOSS_HOME}/server/default/conf"/>
 		<copy file="${basedir}/artifacts/MVCCSampleSTM.jar" todir="${JBOSS_HOME}/common/lib"/>
 		<copy file="${M2_HOME}/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar" todir="${JBOSS_HOME}/common/lib"/>
 		<copy file="${basedir}/artifacts/MVCCSampleEAR.ear" todir="${JBOSS_HOME}/server/default/deploy"/>

Copied: labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/cluster/cluster-cfg.xml (from rev 28944, labs/jbosstm/workspace/whitingjr/trunk/MVCCSampleSTM/src/main/resources/cluster-cfg.xml)
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/cluster/cluster-cfg.xml	                        (rev 0)
+++ labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/cluster/cluster-cfg.xml	2009-08-16 18:18:34 UTC (rev 28949)
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns="urn:infinispan:config:4.0">
+
+   
+	<transport transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport"
+		clusterName="infinispan-cluster" distributedSyncTimeout="50000">
+		<!--
+			Note that the JGroups transport uses sensible defaults if no
+			configuration property is defined.
+		-->
+		<property name="configurationFile" value="udp.xml" />
+		<property name="jgroups.tcpping.initial_hosts" value="udp.xml" />
+		
+		<!-- See the JGroupsTransport javadocs for more flags -->
+	</transport>
+
+
+	<!-- *************************** -->
+	<!-- Default "template" settings -->
+	<!-- *************************** -->
+	<!--
+		this is used as a "template" configuration for all caches in the
+		system.
+	-->
+	<default>
+		<!--
+			isolation levels supported: READ_COMMITTED and REPEATABLE_READ
+		-->
+		<locking isolationLevel="REPEATABLE_READ"
+			lockAcquisitionTimeout="20000" writeSkewCheck="false"
+			concurrencyLevel="500" />
+
+		<!--
+			Used to register a transaction manager and participate in ongoing
+			transactions.
+		-->
+		<transaction
+			transactionManagerLookupClass="org.infinispan.transaction.lookup.JBossTransactionManagerLookup"
+			syncRollbackPhase="false" syncCommitPhase="false" useEagerLocking="false" />
+
+		<!--
+			Used to register JMX statistics in any available MBean server
+		-->
+		<jmxStatistics enabled="false" />
+
+		<lazyDeserialization enabled="false" />
+
+		<!--
+			Used to enable invocation batching and allow the use of
+			Cache.startBatch()/endBatch() methods.
+		-->
+		<invocationBatching enabled="false" />
+
+		<!--
+			This element specifies that the cache is clustered. modes supported:
+			distribution (d), replication (r) or invalidation (i).
+		-->
+		<clustering mode="replication">
+
+			<!--
+				Defines whether to retrieve state on startup
+			-->
+			<stateRetrieval timeout="20000" fetchInMemoryState="false" />
+
+			<!--
+            Network calls are synchronous.
+         -->
+			<sync replTimeout="20000" />
+			<!--
+            Uncomment this for async replication.
+         -->
+			<!--
+				<async useReplQueue="true" replQueueInterval="10000"
+				replQueueMaxElements="500"/>
+			-->
+		</clustering>
+	</default>
+	
+	<!-- No named caches, the DataSource creates the caches on the fly. -->
+
+</infinispan>

Modified: labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/pom.xml
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/pom.xml	2009-08-16 14:36:43 UTC (rev 28948)
+++ labs/jbosstm/workspace/whitingjr/trunk/MVCCSample-build/pom.xml	2009-08-16 18:18:34 UTC (rev 28949)
@@ -111,12 +111,11 @@
 			<version>2.4.4</version>
 			<scope>provided</scope>
 		</dependency>
-		<!-- dependency>
-			<groupId>org.hibernate</groupId>
-			<artifactId>hibernate-core</artifactId>
-			<version>3.3.1.GA</version>
-			<scope>provided</scope>
-		</dependency-->
+		<!--
+			dependency> <groupId>org.hibernate</groupId>
+			<artifactId>hibernate-core</artifactId> <version>3.3.1.GA</version>
+			<scope>provided</scope> </dependency
+		-->
 		<dependency>
 			<groupId>org.hibernate</groupId>
 			<artifactId>hibernate-commons-annotations</artifactId>
@@ -210,11 +209,12 @@
 			<artifactId>maven-ant-tasks</artifactId>
 			<version>2.0.10</version>
 		</dependency>
-		<!-- dependency>  this module has been depreciated
+		<!--
+			dependency> this module has been depreciated
 			<groupId>uk.ac.ncl.sdia.a8905943</groupId>
 			<artifactId>STMAnnotationsJAR</artifactId>
-			<version>0.0.1-SNAPSHOT</version>
-		</dependency-->
+			<version>0.0.1-SNAPSHOT</version> </dependency
+		-->
 		<dependency>
 			<groupId>jboss.jbossts</groupId>
 			<artifactId>jbossjta</artifactId>
@@ -226,7 +226,12 @@
 			<version>5.1.0.GA</version>
 			<scope>provided</scope>
 		</dependency>
-		
+		<dependency>
+			<groupId>org.infinispan</groupId>
+			<artifactId>infinispan-core</artifactId>
+			<version>4.0.0.ALPHA6</version>
+			<scope>provided</scope>
+		</dependency>
 
 	</dependencies>
 </project>
\ No newline at end of file



More information about the jboss-svn-commits mailing list