Copyright (c) Qusay H. Mahmoud
42
Step 5: write a client….
l
Create and initialize the ORB:
l
ORB orb = ORB.init(argv, null);
l
Create the root naming context:
l
org.omg.CORBA.Object objRef =
l
orb.resolve_initial_references("NameService");
l
NamingContext ncRef
=
l
NamingContextHelper.narrow(objRef);
l