for (int i = 0; i < numTimes; i++) {
Context ctx = new InitialContext();
SimpleSingletonLocal bean = (SimpleSingletonLocal) ctx.lookup(jndiName);
// invoke a no-op since the singleton bean instance gets created on invocation
bean.doNothing();
}
} finally {
latch.countDown();
}
return null;