Copyright (c) Qusay H. Mahmoud
6
Browsing the Naming Service
lThe top level only….
limport org.omg.CORBA.*;
limport org.omg.CosNaming.*;
lpublic class Browser {
l   ORB orb = ORB.init (args, null);
l   // obtain a reference to the naming service
l   org.omg.CORBA.Object nc =
l      orb.resolve_initial_references ("NameService");
l    NamingContext namingContext =
l      NamingContextHelper.narrow (nc);