[jbpm-commits] JBoss JBPM SVN: r6550 - in jbpm3/branches/jbpm-3.2-soa: modules/distribution/src/main/resources/cache and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Sat Aug 7 16:23:34 EDT 2010


Author: alex.guizar at jboss.com
Date: 2010-08-07 16:23:33 -0400 (Sat, 07 Aug 2010)
New Revision: 6550

Modified:
   jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh
   jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/cache/jbpm-jbc1-service.xml
Log:
JBPM-2916 take a different jgroups partition name for each hudson job

Modified: jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh	2010-08-07 07:52:48 UTC (rev 6549)
+++ jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh	2010-08-07 20:23:33 UTC (rev 6550)
@@ -10,9 +10,9 @@
 # DATABASE       db2, hsqldb, mssql, mysql, oracle, postgresql
 # CONTAINER      jboss405, jboss423, jboss501, jboss510
 # JBOSS_BINDADDR jboss bind address
+# JOB_NAME       used as unique jgroups partition name
 # SOURCE_REPO    location of jboss distributions
 #
-# $Id$
 
 #
 # Extract JBoss distro
@@ -140,7 +140,7 @@
 # Start JBoss AS
 #
 export JAVA_HOME=$ORIG_JAVA_HOME
-$JBOSS_HOME/bin/run.sh -b $JBOSS_BINDADDR -c $JBOSS_SERVER &> /dev/null &
+$JBOSS_HOME/bin/run.sh -b $JBOSS_BINDADDR -c $JBOSS_SERVER -g $JOB_NAME &> /dev/null &
 
 # Was it successfully started?
 wget --spider --retry-connrefused --waitretry=24 --no-verbose $JBOSS_BINDADDR:8080

Modified: jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/cache/jbpm-jbc1-service.xml
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/cache/jbpm-jbc1-service.xml	2010-08-07 07:52:48 UTC (rev 6549)
+++ jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/cache/jbpm-jbc1-service.xml	2010-08-07 20:23:33 UTC (rev 6550)
@@ -50,7 +50,7 @@
     <attribute name="CacheMode">LOCAL</attribute>
 
     <!-- Name of cluster. Needs to be the same for all clusters, in order to find each other -->
-    <attribute name="ClusterName">TreeCache-Cluster</attribute>
+    <attribute name="ClusterName">TreeCache-${jboss.partition.name:Cluster}</attribute>
 
     <attribute name="ClusterConfig">
       <config>



More information about the jbpm-commits mailing list