[jboss-cvs] JBossAS SVN: r73358 - projects/ejb3/trunk/core.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue May 13 12:24:55 EDT 2008


Author: bstansberry at jboss.com
Date: 2008-05-13 12:24:55 -0400 (Tue, 13 May 2008)
New Revision: 73358

Modified:
   projects/ejb3/trunk/core/build-test.xml
Log:
Make clustered sfsb tests use REPL_SYNC

Modified: projects/ejb3/trunk/core/build-test.xml
===================================================================
--- projects/ejb3/trunk/core/build-test.xml	2008-05-13 16:21:59 UTC (rev 73357)
+++ projects/ejb3/trunk/core/build-test.xml	2008-05-13 16:24:55 UTC (rev 73358)
@@ -5165,6 +5165,10 @@
      
      <create-cluster-node conf="clustered-ejb3-totalrep-0"/>
      <create-cluster-node conf="clustered-ejb3-totalrep-1"/>
+     	
+     <!-- For now use REPL_SYNC -->
+     <cache-mode-config-change conf="clustered-ejb3-totalrep-0"/>
+     <cache-mode-config-change conf="clustered-ejb3-totalrep-1"/>
           
      <server:start name="clustered-ejb3-totalrep-0" />
      <server:start name="clustered-ejb3-totalrep-1" />
@@ -5437,6 +5441,25 @@
      <server:stop name="clusteredjms2" />
    </target>
 
+   <!-- A macro for converting a cache to REPL_SYNC from REPL_ASYNC -->
+   <macrodef name="cache-mode-config-change">
+      <attribute name="conf"/>
+      <attribute name="cacheMode" default="REPL_SYNC"/>
+      <sequential>
+         <echo message="Setting CacheMode to ${cacheMode} in ${jboss.dist}/server/@{conf}"/>
+         <!-- If we're using a sar -->
+         <replaceregexp flags="g"
+            file="${jboss.dist}/server/@{conf}/deploy/cluster/jboss-cache-manager.sar/META-INF/jboss-cache-configs.xml"
+         	match="&lt;attribute name=&quot;CacheMode&quot;&gt;REPL_ASYNC" 
+         	replace="&lt;attribute name=&quot;CacheMode&quot;&gt;@{cacheMode}"/>
+         <!-- If we're using a plain beans.xml -->
+         <replaceregexp flags="g"
+            file="${jboss.dist}/server/@{conf}/deploy/cluster/jboss-cache-manager-beans.xml"
+         	match="&lt;property name=&quot;cacheMode&quot;&gt;REPL_ASYNC" 
+         	replace="&lt;property name=&quot;cacheMode&quot;&gt;@{cacheMode}"/>        
+      </sequential>
+   </macrodef>
+
    <!-- A macro for turning on buddy replication in a node -->
    <macrodef name="buddy-repl-config-change">
       <attribute name="conf"/>




More information about the jboss-cvs-commits mailing list