equal
deleted
inserted
replaced
143 /* |
143 /* |
144 * Ping the unicast object a few times to make sure that the |
144 * Ping the unicast object a few times to make sure that the |
145 * activation group's process hasn't gone away. |
145 * activation group's process hasn't gone away. |
146 */ |
146 */ |
147 System.err.println("Ping unicast object for existence"); |
147 System.err.println("Ping unicast object for existence"); |
148 for (int i = 0; i < 10; i++) { |
148 // set timeout 5 seconds |
|
149 final long stopTime = System.currentTimeMillis() + 5000; |
|
150 while (System.currentTimeMillis() < stopTime) { |
149 unicastObj.ping(); |
151 unicastObj.ping(); |
150 Thread.sleep(500); |
152 Thread.sleep(500); |
151 } |
153 } |
152 |
154 |
153 /* |
155 /* |