diff options
Diffstat (limited to 'TAO/performance-tests/Latency/java_server.java')
-rw-r--r-- | TAO/performance-tests/Latency/java_server.java | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/TAO/performance-tests/Latency/java_server.java b/TAO/performance-tests/Latency/java_server.java deleted file mode 100644 index 4c2c63ee749..00000000000 --- a/TAO/performance-tests/Latency/java_server.java +++ /dev/null @@ -1,40 +0,0 @@ -// -// $Id$ - -import java.io.*; - -public class java_server { - - public static void main(String[] args) { - // Initialize the ORB. - org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,null); - - Test test = new TestImpl (orb); - - // Export the newly create object. - orb.connect(test); - - // Write the IOR to a file - try { - FileWriter output = new FileWriter("test.ior"); - output.write(orb.object_to_string(test)); - output.close(); - } - catch(java.io.IOException e) { - System.out.println("Exception: " + e); - System.exit(1); - } - - System.out.println("The IOR is <" - + orb.object_to_string(test) - + ">"); - - try { - Thread.currentThread().join(); - } - catch(InterruptedException e) { - System.out.println(e); - } - } - -} |