コードサンプル7-1および7-2に,サーバアプリケーションがどのようにrootPOAを取得できるかを示します。
// Initialize the ORB.
CORBA::Object_var obj =
orb->resolve_initial_references("RootPOA");
// get a reference to the rootPOA
PortableServer::POA_var rootPOA =
PortableServer::POA::_narrow(obj);
// Initialize the ORB.
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, null);
// get a reference to the rootPOA
org.omg.PortableServer.POA rootPOA =
POAHelper.narrow(
orb.resolve_initial_references("RootPOA"));