public class CounterClient |
{ |
public static org.omg.CORBA.ORB orb; |
public static Counter.Count counter; |
public static void main (String args[]) { |
try { |
orb = org.omg.CORBA.ORB.init(args, null); |
org.omg.CORBA.Object objRef = |
orb.resolve_initial_references("NameService"); |
NamingContext ncRef = |
NamingContextHelper.narrow(objRef); |
NameComponent nc = new |
NameComponent("Counter", ""); |
NameComponent path[] = {nc}; |
counter = |
Counter.CountHelper.narrow(ncRef.resolve(path)); |