User: salborini
Date: 00/10/18 18:28:08
Modified: src/main/org/jboss/test/lock/test Main.java
Log:
Updated lock test
Revision Changes Path
1.2 +7 -9 jbosstest/src/main/org/jboss/test/lock/test/Main.java
Index: Main.java
===================================================================
RCS file:
/products/cvs/ejboss/jbosstest/src/main/org/jboss/test/lock/test/Main.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Main.java 2000/10/09 18:12:28 1.1
+++ Main.java 2000/10/19 01:28:08 1.2
@@ -20,6 +20,7 @@
int nbThreads;
int iterations;
boolean b2b;
+ boolean nodeploy;
HashMap param = new HashMap();
EnterpriseEntity entity;
@@ -53,7 +54,7 @@
init(); // get params
- deploy(); // deploy the bean
+ if (! nodeploy) deploy(); // deploy the bean
Context ctx = new InitialContext();
EnterpriseEntityHome home =
(EnterpriseEntityHome)ctx.lookup("EnterpriseEntity");
@@ -100,12 +101,9 @@
// ignore
}
- b2b=false;
- try {
- b2b = param.containsKey("b2b");
- } catch (Exception e) {
- // ignore
- }
+ b2b = param.containsKey("b2b");
+ nodeploy = param.containsKey("nodeploy");
+
}
@@ -147,10 +145,10 @@
try {
if (b2b) {
- entity.setAndCopyField(name);
+ entity.setAndCopyField(name+" i="+i);
} else {
- entity.setField(name);
+ entity.setField(name+" i="+i);
}
System.out.println(name + " " + (i+1) + "
iterations done");