/[classpath]/classpath/examples/gnu/classpath/examples/CORBA/SimpleCommunication/Demo.java
ViewVC logotype

Diff of /classpath/examples/gnu/classpath/examples/CORBA/SimpleCommunication/Demo.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mark, Sat Jul 2 20:32:08 2005 UTC revision 1.3 by audriusa, Mon Oct 10 22:52:40 2005 UTC
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
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    
# Line 61  public class Demo Line 63  public class Demo
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      {      {
# Line 70  public class Demo Line 76  public class Demo
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);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26