#includeThis example creates a new POA with the name "my_poa" and activates a new object using that POA. The code also shows how to retrieve the RootPOA reference from the ORB. The package library for the cpp portableserver POA_var is part of the TAO (The ACE ORB) library, which is available as open source software.#include using namespace CORBA; using namespace PortableServer; int main() { ORB_var orb = ORB_init(argc, argv); // create a POA with default policies POA_var poa = POA::_nil(); poa = orb->resolve_initial_references("RootPOA"); poa = poa->create_POA("my_poa", POAManager::_nil(), NULL); // use the POA to create and activate a new object Servant_var servant = new MyServant(); ObjectId_var oid = poa->activate_object(servant); Object_var obj = poa->id_to_reference(oid); return 0; }