org.omg.PortableServer.POAManagerPackage


  1. Getting a POA manager reference

import org.omg.PortableServer.POAManager;
import org.omg.PortableServer.POAManagerPackage.AdapterInactive;

public class GetPOAManager {
    public static void main(String[] args) {
        try {
            // Get the root POA
            POA rootPOA = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));

            // Get the POA manager reference
            POAManager poaManager = rootPOA.the_POAManager();

            // Print the POA manager reference
            System.out.println("POA manager reference: " + poaManager);
        } catch (AdapterInactive e) {
            // Handle the exception
            System.out.println("The POA is inactive");
        }
    }
}
  1. Creating a new POA

  1. Destroying a POA

  1. Getting the policies of a POA

  1. Setting the policies of a POA

  1. Getting the servants in a POA

  1. Adding a servant to a POA