38 |
|
|
39 |
package gnu.classpath.examples.CORBA.SimpleCommunication; |
package gnu.classpath.examples.CORBA.SimpleCommunication; |
40 |
|
|
41 |
|
import java.io.File; |
42 |
|
|
43 |
import gnu.classpath.examples.CORBA.SimpleCommunication.communication.DirectTest; |
import gnu.classpath.examples.CORBA.SimpleCommunication.communication.DirectTest; |
44 |
import gnu.classpath.examples.CORBA.SimpleCommunication.communication.RequestTest; |
import gnu.classpath.examples.CORBA.SimpleCommunication.communication.RequestTest; |
45 |
|
|
63 |
{ |
{ |
64 |
public static void main(final String[] args) |
public static void main(final String[] args) |
65 |
{ |
{ |
66 |
|
File ior = new File("IOR.txt"); |
67 |
|
if (ior.exists()) |
68 |
|
ior.delete(); |
69 |
|
|
70 |
// Start the server. |
// Start the server. |
71 |
new Thread() |
new Thread() |
72 |
{ |
{ |
76 |
} |
} |
77 |
}.start(); |
}.start(); |
78 |
|
|
79 |
System.out.println("Waiting for three seconds for the server to start..."); |
while (!ior.exists()) |
80 |
|
{ |
81 |
// Pause some time for the server to start. |
System.out.print("Waiting for for the server to start "); |
82 |
try { |
// Pause some time for the server to start. |
83 |
Thread.sleep(3000); |
try |
84 |
} |
{ |
85 |
catch (InterruptedException ex) { |
Thread.sleep(200); |
86 |
} |
} |
87 |
|
catch (InterruptedException ex) |
88 |
|
{ |
89 |
|
} |
90 |
|
System.out.print("."); |
91 |
|
} |
92 |
|
System.out.println("ok."); |
93 |
|
|
94 |
// Test the stream oriented communication. |
// Test the stream oriented communication. |
95 |
DirectTest.main(args); |
DirectTest.main(args); |