AtomicInteger counter = new AtomicInteger(0);
CountDownLatch latch = new CountDownLatch(1);
LimitedConcurrencyPojo pojoImpl = new LimitedConcurrencyPojo(counter, latch);
sc.addRemotePojo(pojoImpl, ILimitedConcurrencyPojo.class);
try {
// default for clientMaxPoolSize is 50, but we don't want remoting to be the limit for this test
RemoteCommunicator comm = new JBossRemotingRemoteCommunicator(
"socket://127.0.0.1:" + CommTestConstants.CONNECTOR_BIND_PORT + "/?clientMaxPoolSize=100");
ClientCommandSenderConfiguration config = new ClientCommandSenderConfiguration();