Java -- client
package universe;
import org.omg.CORBA.*; client.java
import java.io.*;
import hush.broker;
public class client
{
public static void main(String args[])
{
broker _broker = new broker(true); // true means client only
try
{
_broker.init(args); init orb
org.omg.CORBA.Object obj = _broker.object("world.ref");
world world = worldHelper.narrow(obj);
if (world == null)
throw new RuntimeException();
System.out.println("Enter 'h' (hello) or 'x' (exit):");
... // do some requests to the world
} catch(...) { ... }
}
};
slide: Java -- client