for (int ii=0; ii<20; ii++) {
System.out.println("Hit a key for ORB #" + ii + "/20");
try { System.in.read(); } catch(java.io.IOException e) {}
ORB orb = OrbInstanceFactory.createOrbInstance(glob, new String[0], null, new CallbackAddress(glob));
try {
POA rootPOA = org.omg.PortableServer.POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
rootPOA.the_POAManager().activate();
}
catch (Throwable e) {
e.printStackTrace();
System.out.println("ERROR: " + e.toString());