import org.omg.CosNaming.*; import org.omg.CORBA.*; import kolmnurk.*; public class kolmnurgaKlient{ public static void main(String argumendid[]) throws Exception{ ORB orb=ORB.init(argumendid, null); arvutusImpl impl=new arvutusImpl(); orb.connect(impl); NamingContext namingContext=NamingContextHelper.narrow( orb.resolve_initial_references("NameService") ); NameComponent[] path={new NameComponent("kolmnurk", "Object")}; arvutus a=arvutusHelper.narrow( namingContext.resolve(path) ); kyljed k=new kyljed(); kyljedHolder kh=new kyljedHolder(); kh.value=k; a.leiaKyljed(30, kh); System.out.println(kh.value.y); } }