Seeding from the 1.2 tree.

This commit is contained in:
Dan Mashal
2013-01-01 03:00:55 -08:00
parent d8c87c4ded
commit 87b806a563
1424 changed files with 260320 additions and 0 deletions

38
dll/europa/corba/ai.java Normal file
View File

@@ -0,0 +1,38 @@
import java.io.*;
import org.omg.CORBA.*;
import EuropaAI.*;
class EuropaServant extends _EuropaImplBase {
public void inputChat(String text) {
System.out.println(text);
}
}
public class ai {
public static void main(String args[]) {
try {
ORB orb = ORB.init(args, null);
// create the servant and register it
EuropaServant europaRef = new EuropaServant();
orb.connect(europaRef);
// stringify the europaRef and dump to an ior file
String str = orb.object_to_string(europaRef);
FileOutputStream fos = new FileOutputStream("ai.ior");
PrintStream ps = new PrintStream(fos);
ps.print(str);
ps.close();
// wait for invocations from clients
java.lang.Object sync = new java.lang.Object();
synchronized (sync) {
sync.wait();
}
} catch (Exception e) {
System.err.println("Error: " + e);
e.printStackTrace(System.out);
}
}
}