import org.omg.CosNaming.*; import org.omg.CORBA.*; public class CORBATeateKlient{ 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")}; CORBATeade ct=CORBATeadeHelper.narrow( namingContext.resolve(path) ); System.out.println(ct.annaTeade()); } }