POA Initialization (Cont.) The resolve_initial_references method returns a CORBA::Object instance, which needs to be narrowed into a POA_var. // Get the Root POA object reference CORBA::Object_var obj = orb->resolve_initial_references ("RootPOA"); // Narrow the object reference to a POA reference PortableServer::POA_var root_poa; try { root_poa = PortableServer::POA::_narrow (obj.in ()); } catch (CORBA::SystemException exception) { cerr << "PortableServer::POA::_narrow"; return -1; }