org.omg.CORBA.Object objRef = orb
.resolve_initial_references("NameService");
// Use NamingContextExt which is part of the Interoperable
// Naming Service (INS) specification.
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
DomainParticipantFactoryImpl impl = new DomainParticipantFactoryImpl(
orb, poa);
// get object reference from the servant (and implicitly register
// it)
org.omg.CORBA.Object oref = poa.servant_to_reference(impl);