CORBA Server for Hello World
import org.omg.CosNaming.NamingContextPackage.*;
import org.omg.CosNaming.*;
public static void main(String args[]) {
// Initialize ORB and BOA
Properties props = new Properties();
ORB orb = ORB.init(args, props);
BOA boa = orb.BOA_init(args, props);
// Create a implementation and connect it to ORB
HelloWorld helloWorld = new HelloWorld_impl();
org.omg.CORBA.Object obj = orb.resolve_initial_references("NameService");
NamingContext nc = NamingContextHelper.narrow(obj);
// Bind object to name service tree
NameComponent[] name = new NameComponent[1];
name[0] = new NameComponent("HelloWorld", "");
nc.bind(name, helloWorld);