args[1] = "NameService=corbaloc::localhost:3528/NameService";
Properties props = new Properties();
props.put("org.omg.CORBA.ORBInitialPort", "3528");
props.put("org.omg.CORBA.ORBInitialHost", "localhost");
ORB orb = ORB.init(args, props);
NamingContextExt nc = NamingContextExtHelper.narrow(orb
.resolve_initial_references("NameService"));
BindingListHolder bl = new BindingListHolder();
BindingIteratorHolder blIt = new BindingIteratorHolder();
nc.list(1000, bl, blIt);
Binding bindings[] = bl.value;