assertEquals("abc", client.invoke("abc"));
log.info("connection is good");
int THREADS = 20;
int LOOPS = 1000;
Rendezvous barrier = new Rendezvous(THREADS * 2 + 1);
CreateCallbackThread[] createCallbackThreads = new CreateCallbackThread[THREADS];
InvokerLocatorUpdateThread[] invokerLocatorUpdateThreads = new InvokerLocatorUpdateThread[THREADS];
for (int i = 0; i < THREADS; i++)
{
createCallbackThreads[i] = new CreateCallbackThread(i, client, barrier, LOOPS);
invokerLocatorUpdateThreads[i] = new InvokerLocatorUpdateThread(i, barrier, LOOPS * 100);
createCallbackThreads[i].start();
invokerLocatorUpdateThreads[i].start();
}
log.info("main thread going to rendezvous");
barrier.rendezvous(null);
barrier.rendezvous(null);
log.info("main thread leaving second rendezvous");
client.disconnect();
shutdownServer();