Author: jfrederic.clere(a)jboss.com
Date: 2008-11-27 10:46:00 -0500 (Thu, 27 Nov 2008)
New Revision: 2076
Modified:
trunk/mod_cluster/test/java/README.txt
trunk/mod_cluster/test/java/org/jboss/mod_cluster/Maintest.java
Log:
Change default to use mod_cluster listener.
Modified: trunk/mod_cluster/test/java/README.txt
===================================================================
--- trunk/mod_cluster/test/java/README.txt 2008-11-27 15:06:29 UTC (rev 2075)
+++ trunk/mod_cluster/test/java/README.txt 2008-11-27 15:46:00 UTC (rev 2076)
@@ -5,6 +5,9 @@
ant
to run a single test:
ant one -Dtest=test where test is for example Test_Chunk_JBWEB_117
+3 - JBW listener:
+ to test the JBW cluster listener use -Dcluster=false for example:
+ ant one -Dtest=Test_Chunk_JBWEB_117 -Dcluster=false
NOTE the httpd should have something like the following in httpd.conf
<IfModule manager_module>
Modified: trunk/mod_cluster/test/java/org/jboss/mod_cluster/Maintest.java
===================================================================
--- trunk/mod_cluster/test/java/org/jboss/mod_cluster/Maintest.java 2008-11-27 15:06:29
UTC (rev 2075)
+++ trunk/mod_cluster/test/java/org/jboss/mod_cluster/Maintest.java 2008-11-27 15:46:00
UTC (rev 2076)
@@ -57,11 +57,13 @@
// Read the -Dcluster=true/false.
String jbossweb = System.getProperty("cluster");
- if (jbossweb != null && jbossweb.equalsIgnoreCase("true")) {
+ if (jbossweb != null && jbossweb.equalsIgnoreCase("false")) {
+ System.out.println("Running tests with jbossweb listener");
+ isJBossWEB = true;
+ } else {
System.out.println("Running tests with mod_cluster listener");
isJBossWEB = false;
- } else
- System.out.println("Running tests with jbossweb listener");
+ }
// Read the -Dtest="value".
String test = System.getProperty("test");
Show replies by date