Examples of the_POAManager()


Examples of org.omg.PortableServer.POA.the_POAManager()

        }

        public void unbind(final String name) throws Exception {
            final POA poa = transientPoaMap.remove(name);
            if (poa != null) {
                poa.the_POAManager().deactivate(false, true);
                poa.destroy(false, false);
            }
        }

    }
View Full Code Here

Examples of org.omg.PortableServer.POA.the_POAManager()

        public ReferenceFactory bind(final String name, final Servant servant, final Policy[] policies) throws Exception {
            final Policy[] poaPolicies = concatPolicies(persistentPoaPolicies, policies);
            final POA poa = rootPOA.getValue().create_POA(name, null, poaPolicies);
            persistentPoaMap.put(name, poa);
            poa.set_servant(servant);
            poa.the_POAManager().activate();
            return new PoaReferenceFactory(poa); // no servantName: in this case
            // name is the POA name
        }

        public ReferenceFactory bind(final String name, final Servant servant) throws Exception {
View Full Code Here

Examples of org.omg.PortableServer.POA.the_POAManager()

        public ReferenceFactory bind(final String name, final Servant servant) throws Exception {
            final POA poa = rootPOA.getValue().create_POA(name, null, persistentPoaPolicies);
            persistentPoaMap.put(name, poa);
            poa.set_servant(servant);
            poa.the_POAManager().activate();
            return new PoaReferenceFactory(poa); // no servantName: in this case
            // name is the POA name
        }

        public void unbind(final String name) throws Exception {
View Full Code Here

Examples of org.omg.PortableServer.POA.the_POAManager()

        }

        public void unbind(final String name) throws Exception {
            final POA poa = persistentPoaMap.remove(name);
            if (poa != null) {
                poa.the_POAManager().deactivate(false, true);
                poa.destroy(false, false);
            }
        }

    }
View Full Code Here

Examples of org.omg.PortableServer.POA.the_POAManager()

     */
    public void initialize(ORB orb) throws TransientServiceException {
        try {
            // get the root POA.  We're going to re
            POA rootPOA = (POA) orb.resolve_initial_references("RootPOA");
            rootPOA.the_POAManager().activate();

            // we need to create a POA to manage this named instance, and then activate
            // a context on it.
            Policy[] policy = new Policy[3];
            policy[0] = rootPOA.create_lifespan_policy(LifespanPolicyValue.TRANSIENT);
View Full Code Here

Examples of org.omg.PortableServer.POA.the_POAManager()

            policy[0] = rootPOA.create_lifespan_policy(LifespanPolicyValue.TRANSIENT);
            policy[1] = rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.SYSTEM_ID);
            policy[2] = rootPOA.create_servant_retention_policy(ServantRetentionPolicyValue.RETAIN);

            POA nameServicePOA = rootPOA.create_POA("TNameService", null, policy );
            nameServicePOA.the_POAManager().activate();

            // create our initial context, and register that with the ORB as the name service
            initialContext = new TransientNamingContext(orb, nameServicePOA);

            //
View Full Code Here

Examples of org.omg.PortableServer.POA.the_POAManager()

        RequestProcessingPolicyValue.USE_ACTIVE_OBJECT_MAP_ONLY );
    tpolicy[2] = rootPoa.create_servant_retention_policy(
        ServantRetentionPolicyValue.RETAIN);
    POA poa = rootPoa.create_POA("SamplePOA", null, tpolicy);

    poa.the_POAManager().activate();
   
    // Create a SampleImpl and bind it to the POA
    Sample sample = new SampleImpl();
   
    Tie tie = javax.rmi.CORBA.Util.getTie(sample);
View Full Code Here

Examples of org.omg.PortableServer.POA.the_POAManager()

 
  public static void main(String[] args) throws Exception {
    // Initialize ORB
    final org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(new String[0], null);
    POA rootPoa = (POA) orb.resolve_initial_references("RootPOA");
    rootPoa.the_POAManager().activate();
    System.out.println("ORB: " + orb.getClass().getName());
   
    // Bind a sample CORBA object
    SampleCorba_impl sampleCorba = new SampleCorba_impl();
    byte [] id = rootPoa.activate_object(sampleCorba);
View Full Code Here

Examples of org.omg.PortableServer.POA.the_POAManager()

    this.responseMonitor = responseMonitor;

    try {
      try {
        Policy[] policies = new Policy[0];
        m_default_poa = poa.create_POA("TODO", poa.the_POAManager(),
            policies);
      } catch (AdapterAlreadyExists e) {
        m_default_poa = poa.find_POA("TODO", true);
      }
      log.debug("JABSession createCallbackObject");
View Full Code Here

Examples of org.omg.PortableServer.POA.the_POAManager()

            throw wrapper.getDelegateWrongPolicy( wp ) ;
        }

        // Make sure that the POAManager is activated if no other
        // POAManager state management has taken place.
        POAManager mgr = poa.the_POAManager() ;
        if (mgr instanceof POAManagerImpl) {
            POAManagerImpl mgrImpl = (POAManagerImpl)mgr ;
            mgrImpl.implicitActivation() ;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.