geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r905176 - in /geronimo/sandbox/failover: failover-tomcat-demo/ failover-tomcat-demo/src/main/assembly/ failover-tomcat-demo/src/main/resources/ failover-tomcat-demo/src/main/resources/grinder-3.0.1/ failover-tomcat-demo/src/main/resources/g...
Date Mon, 01 Feb 2010 05:14:31 GMT
Author: genspring
Date: Mon Feb  1 05:14:30 2010
New Revision: 905176

URL: http://svn.apache.org/viewvc?rev=905176&view=rev
Log:
Adding windows support, moved grinder.properties and grinder.py to current path so that we
can remove embedded grinder from the build later. Fixed jython cache dir warning.

Added:
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/all.bat   (with props)
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/deployEJBtoController.cmd
  (with props)
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartController.cmd
  (with props)
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartFarmNodes.cmd
  (with props)
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.properties 
 (with props)
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.py   (with props)
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/initEnv.cmd   (with
props)
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderAgent.cmd
  (with props)
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderConsole.cmd
  (with props)
Removed:
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder-3.0.1/grinder.properties
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder-3.0.1/grinder.py
Modified:
    geronimo/sandbox/failover/failover-tomcat-demo/pom.xml
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/assembly/assembly.xml
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/README.txt   (contents,
props changed)
    geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder-3.0.1/bin/agent
  (contents, props changed)
    geronimo/sandbox/failover/load-beans/src/main/java/org/superbiz/load/LoadBean.java   (contents,
props changed)

Modified: geronimo/sandbox/failover/failover-tomcat-demo/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/pom.xml?rev=905176&r1=905175&r2=905176&view=diff
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/pom.xml (original)
+++ geronimo/sandbox/failover/failover-tomcat-demo/pom.xml Mon Feb  1 05:14:30 2010
@@ -58,6 +58,23 @@
             <classifier>bin</classifier>
             <type>tar.gz</type>
         </dependency>
+        
+         <dependency>
+            <groupId>org.apache.geronimo.assemblies</groupId>
+            <artifactId>geronimo-plugin-farm-node</artifactId>
+            <version>${geronimo.version}</version>
+            <classifier>bin</classifier>
+            <type>zip</type>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.assemblies</groupId>
+            <artifactId>geronimo-tomcat-farm-controller</artifactId>
+            <version>${pom.version}</version>
+            <classifier>bin</classifier>
+            <type>zip</type>
+        </dependency>
+
 
         <dependency>
             <groupId>org.superbiz</groupId> 

Modified: geronimo/sandbox/failover/failover-tomcat-demo/src/main/assembly/assembly.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/src/main/assembly/assembly.xml?rev=905176&r1=905175&r2=905176&view=diff
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/src/main/assembly/assembly.xml (original)
+++ geronimo/sandbox/failover/failover-tomcat-demo/src/main/assembly/assembly.xml Mon Feb
 1 05:14:30 2010
@@ -22,6 +22,7 @@
     <id>assembly</id>
     <formats>
         <format>tar.gz</format>
+        <format>zip</format>
     </formats>
 
     <includeBaseDirectory>true</includeBaseDirectory>
@@ -31,8 +32,8 @@
             <directory>src/main/resources</directory>
             <outputDirectory>/</outputDirectory>
             <excludes>
-	        <exclude>*.sh</exclude>
-	    </excludes>
+            <exclude>*.sh</exclude>
+        </excludes>
         </fileSet>
 
         <fileSet>

Modified: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/README.txt
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/README.txt?rev=905176&r1=905175&r2=905176&view=diff
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/README.txt (original)
+++ geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/README.txt Mon Feb 
1 05:14:30 2010
@@ -8,7 +8,7 @@
 
 A quick overview of the important Grinder files:
 
-  grinder-3.0.1/grinder.properties
+   grinder.properties
  
     This file has all the Grinder configuration settings.  Only one
     setting needs to be updated before things will work, that's
@@ -17,7 +17,7 @@
     "grinder.jvm.classpath" property to point to the directory where
     everything has been extracted.
 
-  grinder-3.0.1/grinder.py
+   grinder.py
     
     This is essentially the client.  The Grinder generates javacode
     from that file and then runs it as the load testing client.  Note
@@ -46,7 +46,7 @@
 with that directory unless you're interested.
 
 
--- Scripts --
+-- Scripts unix/linux--
 
 
 The scripts are for convenience and not a critical part of testing the
@@ -76,6 +76,35 @@
     infinitely till the script is killed. (this is slightly different from the previous
     version, it is adapted to the multiple servers on one installation setup)
 
+-- Scripts Windows--
+
+
+The scripts are for convenience and not a critical part of testing the
+failover.
+
+Here's what the do:
+
+  
+  initEnv.cmd
+    important environment settings
+  
+  all.bat
+    This unpacks and runs everything.
+    - runs extractAndStartController.cmd to unpack and start the farm controller server
+    - runs extractAndStartFarmNodes.cmd to unpack and start the farm nodes
+    - runs the deployEJBtoController.cmd script against the farm controller server
+       to deploy the load-beans app and distribute it to the farm 
+    - starts grinder.  You will need to actually start the run from the console.
+
+  deployEJBtoController.cmd
+   A script that deploys and distributes the load-beans app.
+
+  extractAndStartFarmNodes.cmd
+
+    A simple utility that makes the whole repeated starting of servers automated so you can
let it run for a few
+    hours unattended to see how things look over a prolonged period.
+   
+
 -- Servers --
 
 Two servers are included.  

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/all.bat
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/all.bat?rev=905176&view=auto
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/all.bat (added)
+++ geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/all.bat Mon Feb  1 05:14:30
2010
@@ -0,0 +1,9 @@
+call extractAndStartController.cmd
+echo wait 25 seconds for farm controller start up
+ping 127.0.0.1 -n 25 -w 1000 > NUL
+call extractAndStartFarmNodes.cmd
+echo wait 25 seconds for farm nodes start up
+ping 127.0.0.1 -n 25 -w 1000 > NUL
+call deployEJBtoController.cmd
+START /MIN "grinder console" startGrinderConsole.cmd
+call startGrinderAgent.cmd startAgent.cmd
\ No newline at end of file

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/all.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/all.bat
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/deployEJBtoController.cmd
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/deployEJBtoController.cmd?rev=905176&view=auto
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/deployEJBtoController.cmd
(added)
+++ geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/deployEJBtoController.cmd
Mon Feb  1 05:14:30 2010
@@ -0,0 +1,13 @@
+call initEnv.cmd
+
+if exist %CONTROLLERPATH%\repository\org\superbiz RD %CONTROLLERPATH%\repository\org\superbiz
+
+ECHO Deploying %TESTEJBJAR% to farm controller
+CALL "%CONTROLLERPATH%\bin\gsh.bat" -c "deploy/distribute --hostname %HOST% --username system
--password manager ../../%TESTEJBJAR%"
+CALL "%CONTROLLERPATH%\bin\gsh.bat" -c "deploy/redeploy --hostname %HOST% --username system
--password manager ../../%TESTEJBJAR%"
+ECHO ejb deployed to farm controller
+
+ECHO Deploying %TESTEJBJAR% to cluster1
+CALL "%CONTROLLERPATH%\bin\gsh.bat" -c "cluster/deploy add --hostname %HOST% --username system
--password manager --cluster cluster1 --pluginlist pluginlist1 --pluginartifact org.superbiz/load-beans/1.0/car"
+
+ECHO ejb deployed to cluster

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/deployEJBtoController.cmd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/deployEJBtoController.cmd
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartController.cmd
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartController.cmd?rev=905176&view=auto
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartController.cmd
(added)
+++ geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartController.cmd
Mon Feb  1 05:14:30 2010
@@ -0,0 +1,10 @@
+call initEnv.cmd
+
+IF NOT EXIST %CONTROLLERPATH% 7z x geronimo-tomcat-farm-controller-%demoVersion%-bin.zip
-y -bd
+
+echo %HOST%
+ECHO START /MIN "Farm Controller with portOffset 0" %CONTROLLERPATH%/bin/gsh.bat -c "geronimo/start-server
-b -G config.substitution.ServerHostname=%HOST%"
+START /MIN "Farm Controller with portOffset 0" %CONTROLLERPATH%/bin/gsh.bat -c "geronimo/start-server
-b -G config.substitution.ServerHostname=%HOST%"
+
+
+

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartController.cmd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartController.cmd
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartFarmNodes.cmd
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartFarmNodes.cmd?rev=905176&view=auto
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartFarmNodes.cmd
(added)
+++ geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartFarmNodes.cmd
Mon Feb  1 05:14:30 2010
@@ -0,0 +1,26 @@
+call initEnv.cmd
+
+IF NOT EXIST %FARMNODEPATH% 7z x geronimo-plugin-farm-node-%geronimoVersion%-bin.zip -y -bd
+
+
+
+SET /a i=1
+
+:loop
+IF %i%==3 GOTO END
+echo create and start instance server %i%.
+
+if exist %FARMNODEPATH%\server%i%\var RD %FARMNODEPATH%\server%i%\var /S /Q
+mkdir %FARMNODEPATH%\server%i%\var
+xcopy %FARMNODEPATH%\var %FARMNODEPATH%\server%i%\var /E/R
+set server=server%i%
+set portOffset=%i%0
+
+echo START "farm node - %i% with portOffSet %i%0" %FARMNODEPATH%\bin\gsh.bat -c "geronimo/start-server
-b -G server.name=%server% -G config.substitution.ServerHostname=%HOST% -G config.substitution.PortOffset=%portOffset%"
+START /MIN "farm node - %i% with portOffSet %i%0" %FARMNODEPATH%\bin\gsh.bat -c "geronimo/start-server
-b -G server.name=%server% -G config.substitution.ServerHostname=%HOST% -G config.substitution.PortOffset=%portOffset%"
+SET /a i=%i%+1
+GOTO LOOP
+
+:end
+
+echo farm nodes instanced started
\ No newline at end of file

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartFarmNodes.cmd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/extractAndStartFarmNodes.cmd
------------------------------------------------------------------------------
    svn:executable = *

Modified: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder-3.0.1/bin/agent
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder-3.0.1/bin/agent?rev=905176&r1=905175&r2=905176&view=diff
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder-3.0.1/bin/agent
(original)
+++ geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder-3.0.1/bin/agent
Mon Feb  1 05:14:30 2010
@@ -1,3 +1,3 @@
 #!/bin/bash
 cd $(dirname "$0")/..
-java -cp lib/grinder.jar net.grinder.Grinder grinder.properties
\ No newline at end of file
+java -cp lib/grinder.jar net.grinder.Grinder ../../grinder.properties

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder-3.0.1/bin/agent
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.properties?rev=905176&view=auto
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.properties (added)
+++ geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.properties Mon
Feb  1 05:14:30 2010
@@ -0,0 +1,115 @@
+# The file name of the Jython script to run.
+grinder.script grinder.py
+
+# The number of worker processes the agent should start.
+grinder.processes 2
+
+# The number of worker threads that each worker process spawns.
+grinder.threads 10
+
+# The number of runs of the test script each thread performs. 0 means "run
+# forever", and should be used when you are using the console to control your
+# test runs.
+grinder.runs 0
+
+# If set, the agent will ramp up the number of worker processes, starting the
+# number specified every grinder.processesIncrementInterval milliseconds. The
+# upper limit is set by grinder.processes.	Start all worker processes
+# together.
+#grinder.processIncrement
+
+# Used in conjunction with grinder.processIncrement, this property sets the
+# interval in milliseconds at which the agent starts new worker processes.
+#grinder.processIncrementInterval 60000 ms
+
+# Used in conjunction with grinder.processIncrement, this property sets the
+# initial number of worker processes to start.	The default value is
+# grinder.processIncrement.
+#grinder.initialProcesses
+
+# The maximum length of time in milliseconds that each worker process should
+# run for. grinder.duration can be specified in conjunction with grinder.runs,
+# in which case the worker processes will terminate if either the duration time
+# or the number of runs is exceeded.	The default is to run forever.
+#grinder.duration
+
+# Use an alternate JVM for worker processes. Defaults to java so you do not
+# need to specify this if your PATH is sensible.
+#grinder.jvm java
+
+# Use to adjust the classpath used for the worker process JVMs. Anything
+# specified here will be prepended to the classpath used to start the Grinder
+# processes.
+grinder.jvm.classpath=../geronimo-tomcat-farm-controller-1.0-SNAPSHOT/repository/org/apache/openejb/openejb-client/3.1.2/openejb-client-3.1.2.jar:/
+  ../geronimo-tomcat-farm-controller-1.0-SNAPSHOT/repository/org/apache/geronimo/specs/geronimo-ejb_3.0_spec/1.0.1/geronimo-ejb_3.0_spec-1.0.1.jar:/
+  ../geronimo-tomcat-farm-controller-1.0-SNAPSHOT/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar:/
+  ../load-beans-1.0-SNAPSHOT.jar
+
+# Additional arguments to worker process JVMs. 
+#grinder.jvm.arguments = -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
+grinder.jvm.arguments = -Dpython.cachedir=grinder_tmp
+
+# Directory to write log files to. Created if it doesn't already exist.
+# Defaults to the local directory.
+grinder.logDirectory logs
+
+# The number of archived logs from previous runs that should be kept.
+grinder.numberOfOldLogs	0
+
+# Specifies the "host" string used in log filenames and logs.
+#grinder.hostID
+
+# The IP address or host name that the agent and worker processes use to
+# contact the console.
+#grinder.consoleHost
+
+# The IP port that the agent and worker processes use to contact the console.
+#grinder.consolePort 6372
+
+# Set to false to set the agent and worker processes not to use the console.
+#grinder.useConsole	true
+
+# The period at which each process sends updates to the console. This also
+# controls the frequency at which the data files are flushed.
+#grinder.reportToConsole.interval 500 ms
+
+# The maximum time in milliseconds that each thread waits before starting.
+# Unlike the sleep times specified in scripts, this is varied according to a
+# flat random distribution. The actual sleep time will be a random value
+# between 0 and the specified value. Affected by grinder.sleepTimeFactor, but
+# not grinder.sleepTimeVariation.
+#grinder.initialSleepTime 0 ms
+
+# Apply a factor to all the sleep times you've specified, either through a
+# property of in a script. Setting this to 0.1 would run the script ten times
+# as fast.
+#grinder.sleepTimeFactor 1
+
+# The Grinder varies the sleep times specified in scripts according to a Normal
+# distribution. This property specifies a fractional range within which nearly
+# all (99.75%) of the times will lie. E.g., if the sleep time is specified as
+# 1000 and the sleepTimeVariation is set to 0.1, then 99.75% of the actual
+# sleep times will be between 900 and 1100 milliseconds.
+#grinder.sleepTimeVariation 0.2
+
+# Set to false to disable the logging of output and error steams for worker
+# processes. You might want to use this to reduce the overhead of running a
+# client thread.
+#grinder.logProcessStreams true
+
+# Set to false to disable reporting of timing information to the console;
+# other statistics are still reported.
+#grinder.reportTimesToConsole true
+
+# If set to true, the agent process spawns engines in threads rather than
+# processes, using special class loaders to isolate the engines. This allows
+# the engine to be easily run in a debugger. This is primarily a tool for
+# debugging The Grinder engine, but it might also be useful to advanced users.
+#grinder.debug.singleprocess false
+
+# If set to true, System.nanoTime() is used for measuring time instead of
+# System.currentTimeMills(). The Grinder will still report times in
+# milliseconds. The precision of these methods depends on the JVM
+# implementation and the operating system. Setting to true requires J2SE 5 or
+# later.	
+#grinder.useNanoTime false

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.py
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.py?rev=905176&view=auto
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.py (added)
+++ geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.py Mon Feb 
1 05:14:30 2010
@@ -0,0 +1,54 @@
+# Hello World
+#
+# A minimal script that tests The Grinder logging facility.
+#
+# This script shows the recommended style for scripts, with a
+# TestRunner class. The script is executed just once by each worker
+# process and defines the TestRunner class. The Grinder creates an
+# instance of TestRunner for each worker thread, and repeatedly calls
+# the instance for each run of that thread.
+
+from net.grinder.script.Grinder import grinder
+from net.grinder.script import Test
+from javax.naming import Context,InitialContext
+from java.util import Properties
+from java.lang import System
+
+# A shorter alias for the grinder.logger.output() method.
+log = grinder.logger.output
+
+tests = {
+    "ping" : Test(1, "ping"),
+    "add" : Test(2, "add"),
+    "sum" : Test(3, "sum"),
+    }
+
+# Wrap the log() method with our Test and call the result logWrapper.
+# Calls to logWrapper() will be recorded and forwarded on to the real
+# log() method.
+#logWrapper = test1.wrap(log)
+
+System.setProperty("openejb.client.requestretry", "true")
+# Initial context lookup for EJB home.
+p = Properties()
+p[Context.INITIAL_CONTEXT_FACTORY] = "org.apache.openejb.client.RemoteInitialContextFactory"
+#p[Context.PROVIDER_URL] = "http://127.0.0.1:4204/ejb";
+#p[Context.PROVIDER_URL] = "ejbd://127.0.0.1:4201";
+p[Context.PROVIDER_URL] = "multicast://239.255.3.2:6142?group=cluster1";
+
+
+loadBean = InitialContext(p).lookup("LoadBeanRemote")
+pingBean = tests["ping"].wrap(loadBean)
+addBean = tests["add"].wrap(loadBean)
+sumBean = tests["sum"].wrap(loadBean)
+
+
+# A TestRunner instance is created for each thread. It can be used to
+# store thread-specific data.
+class TestRunner:
+
+    # This method is called for every run.
+    def __call__(self):        
+        pingBean.ping()
+        addBean.add(3, 4)
+        sumBean.sum([3, 4, 5, 6])

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/grinder.py
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/initEnv.cmd
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/initEnv.cmd?rev=905176&view=auto
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/initEnv.cmd (added)
+++ geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/initEnv.cmd Mon Feb
 1 05:14:30 2010
@@ -0,0 +1,13 @@
+@ECHO OFF
+set demoVersion=1.0-SNAPSHOT
+set geronimoVersion=2.2
+set GRINDERPATH=%cd%\grinder-3.0.1
+set CONTROLLERPATH=%cd%\geronimo-tomcat-farm-controller-%demoVersion%
+set FARMNODEPATH=%cd%\geronimo-plugin-farm-node-%geronimoVersion%
+set TESTEJBJAR=load-beans-1.0-SNAPSHOT.jar
+set TESTEJBJARFULLPATH=%cd%\load-beans-1.0-SNAPSHOT.jar
+set HOST=IBM-L3V7247
+
+set GRINDERPROPERTIES=grinder.properties
+set CLASSPATH=%GRINDERPATH%\lib\grinder.jar;%TESTEJBJARFULLPATH%;%CONTROLLERPATH%\repository\org\apache\openejb\openejb-client\3.1.2\openejb-client-3.1.2.jar;%CONTROLLERPATH%\repository\org\apache\geronimo\specs\geronimo-ejb_3.0_spec\1.0.1\geronimo-ejb_3.0_spec-1.0.1.jar
+

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/initEnv.cmd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/initEnv.cmd
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderAgent.cmd
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderAgent.cmd?rev=905176&view=auto
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderAgent.cmd
(added)
+++ geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderAgent.cmd
Mon Feb  1 05:14:30 2010
@@ -0,0 +1,3 @@
+call initEnv.cmd
+echo %CLASSPATH%
+java -cp %CLASSPATH% net.grinder.Grinder %GRINDERPROPERTIES%
\ No newline at end of file

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderAgent.cmd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderAgent.cmd
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderConsole.cmd
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderConsole.cmd?rev=905176&view=auto
==============================================================================
--- geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderConsole.cmd
(added)
+++ geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderConsole.cmd
Mon Feb  1 05:14:30 2010
@@ -0,0 +1,2 @@
+call initEnv.cmd
+java -cp %CLASSPATH% net.grinder.Console
\ No newline at end of file

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderConsole.cmd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/failover/failover-tomcat-demo/src/main/resources/startGrinderConsole.cmd
------------------------------------------------------------------------------
    svn:executable = *

Modified: geronimo/sandbox/failover/load-beans/src/main/java/org/superbiz/load/LoadBean.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/failover/load-beans/src/main/java/org/superbiz/load/LoadBean.java?rev=905176&r1=905175&r2=905176&view=diff
==============================================================================
--- geronimo/sandbox/failover/load-beans/src/main/java/org/superbiz/load/LoadBean.java (original)
+++ geronimo/sandbox/failover/load-beans/src/main/java/org/superbiz/load/LoadBean.java Mon
Feb  1 05:14:30 2010
@@ -23,14 +23,17 @@
 @Stateless
 public class LoadBean implements Load {
     public void ping() {
+    System.out.println("pinging....");
         // do nothing
     }
 
     public int add(int a, int b) {
+        System.out.println("adding "+a +" and " +b);
         return a + b;
     }
 
     public int sum(int... items) {
+        System.out.println("doing sum....");
         int i = 0;
         for (int item : items) {
             i += item;

Propchange: geronimo/sandbox/failover/load-beans/src/main/java/org/superbiz/load/LoadBean.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message