User: schulze
Date: 00/10/09 19:17:57
Modified: src/main/org/jboss/test/load/test Client.java
Log:
added hack to run it under Win2000
Revision Changes Path
1.2 +11 -1 jbosstest/src/main/org/jboss/test/load/test/Client.java
Index: Client.java
===================================================================
RCS file:
/products/cvs/ejboss/jbosstest/src/main/org/jboss/test/load/test/Client.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Client.java 2000/10/08 00:03:01 1.1
+++ Client.java 2000/10/10 02:17:56 1.2
@@ -21,7 +21,7 @@
* </dl>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Daniel Schulze</a>
-* @version $Id: Client.java,v 1.1 2000/10/08 00:03:01 schulze Exp $
+* @version $Id: Client.java,v 1.2 2000/10/10 02:17:56 schulze Exp $
*/
public class Client
{
@@ -123,6 +123,16 @@
{
workers[i] = new Worker (threadGroup, i, name, verbose, beans, loops);
workers[i].start ();
+ // because of problems with Windows 2000...
+ // (on W2000 the server couldnt serve this many connection
+ // requests (jndi) in such quick sequence)
+ // .. this hack:
+ try
+ {
+ Thread.currentThread ().sleep (500);
+ } catch (InterruptedException _ie)
+ { // shoudnt happen...
+ }
}
// wait for all threads to finish... (is this the most elegant way?!)