log.info("Threads before starting #" + (i+1) + " num=" + ThreadLister.countThreads());
ThreadLister.listAllThreads(System.out);
}
//this.glob.init(Util.getOtherServerPorts(serverPort));
EmbeddedXmlBlaster embeddedXmlBlaster = EmbeddedXmlBlaster.startXmlBlaster(this.glob);
log.info("Threads with alive server #" + (i+1) + " num=" + ThreadLister.countThreads());
ThreadLister.listAllThreads(System.out);
if (interactive) {
log.info("Hit a key to stop embedded xmlBlaster #" + (i+1) + "/" + n);
try { System.in.read(); } catch(java.io.IOException e) {}
}
else {
log.info("********* Stop embedded xmlBlaster #" + (i+1) + "/" + n);
}
embeddedXmlBlaster.stopServer(true);
embeddedXmlBlaster = null;
//Util.resetPorts();
log.info("Threads after stopping #" + (i+1) + " num=" + ThreadLister.countThreads());
ThreadLister.listAllThreads(System.out);