import org.omg.CosNaming.*; import org.omg.CORBA.*; public class CORBATeateServer{ public static void main(String argumendid[]) throws Exception{ ORB orb=ORB.init(argumendid, null); CORBATeadeImpl impl=new CORBATeadeImpl(); orb.connect(impl); NamingContext namingContext=NamingContextHelper.narrow( orb.resolve_initial_references("NameService") ); NameComponent[] path={new NameComponent("CORBATeade", "Object")}; namingContext.rebind(path, impl); System.in.read(); } }