test/java/rmi/activation/Activatable/inactiveGroup/InactiveGroup.java

Print this page

        

*** 143,153 **** /* * Ping the unicast object a few times to make sure that the * activation group's process hasn't gone away. */ System.err.println("Ping unicast object for existence"); ! for (int i = 0; i < 10; i++) { unicastObj.ping(); Thread.sleep(500); } /* --- 143,155 ---- /* * Ping the unicast object a few times to make sure that the * activation group's process hasn't gone away. */ System.err.println("Ping unicast object for existence"); ! // set timeout 5 seconds ! final long stopTime = System.currentTimeMillis() + 5000; ! while (System.currentTimeMillis() < stopTime) { unicastObj.ping(); Thread.sleep(500); } /*