// create the persistent name service
NameService ns = new NameService(orb, dbDir);
// add root naming context to initial naming
NamingContext rootContext = ns.initialNamingContext();
InitialNameService ins = InitialNameServiceHelper.narrow(
orb.resolve_initial_references(
ORBConstants.INITIAL_NAME_SERVICE_NAME ));
ins.bind( "NameService", rootContext, true);
System.out.println(CorbaResourceUtil.getText("pnameserv.success"));
// wait for invocations
orb.run();