/** * */ package de.test; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; /** * @author sjankus * */ public class TestClient { /** The JNDI-Name */ private static final String JNDI_NAME = "TestServer/TestEJB/TestServerBean!de.test.TestServer"; /** Amount of Threads to be started */ private static final int NUMMER_OFF_THREADS = 500; /** Time to wait befor starting the next thread */ private static long TIME_TO_WAIT = 100; /** * @param args */ public static void main(String[] args) { try { TestClient tc = new TestClient(); tc.setSystemProperties(); tc.doExecute(); } catch (Exception e) { e.printStackTrace(); System.exit(-1); } } private void doExecute() throws InterruptedException { for (int x=0; x