Examples of the_POAManager()


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()

                orb_.run();
            }
        };

        final POA _poa = POAHelper.narrow(orb_.resolve_initial_references("RootPOA"));
        _poa.the_POAManager().activate();

        _orbRunner.start();
    }

    public int stop(int code)
View Full Code Here

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

        BiDirGiopPOAComponentAdapter.addBiDirGiopPolicy(_ps, orb, config_);

        org.omg.CORBA.Policy[] _policies = (org.omg.CORBA.Policy[]) _ps
                .toArray(new org.omg.CORBA.Policy[_ps.size()]);

        eventChannelFactoryPOA_ = _rootPOA.create_POA(EVENTCHANNEL_FACTORY_POA_NAME, _rootPOA
                .the_POAManager(), _policies);

        for (int x = 0; x < _policies.length; ++x)
        {
            _policies[x].destroy();
View Full Code Here

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

        _factory.startChannels(props);

        if (startThread)
        {
            POA _poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
            _poa.the_POAManager().activate();

            Thread _orbThread = new Thread(new Runnable()
            {
                public void run()
                {
View Full Code Here

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

            NameServer.NameServantActivatorImpl servantActivator =
                new NameServer.NameServantActivatorImpl( orb );
            servantActivator.configure(config);

            nsPOA.set_servant_manager( servantActivator );
            nsPOA.the_POAManager().activate();

            for (int i = 0; i < policies.length; i++)
                policies[i].destroy();

            /* export the root context's reference to a file */
 
View Full Code Here

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

                RegistrationHelper.narrow( orb.resolve_initial_references("ImplementationRepository"));
            if( _registration == null )
                throw new ConfigurationException("ImR not found");

            POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
            poa.the_POAManager().activate();

            ServerStartupDaemon ssd =
                ServerStartupDaemonHelper.narrow(poa.servant_to_reference(this));

            HostInfo _me = new HostInfo(InetAddress.getLocalHost().getHostName(),
View Full Code Here

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

  public boolean unknown_adapter(POA parent, String child_name)
  {
    try
      {
        POA n = parent.create_POA(child_name, null, new Policy[ 0 ]);
        n.the_POAManager().activate();
      }
    catch (Exception ex)
      {
        return false;
      }
View Full Code Here

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

                                         poa_comTesterHelper.id()
                                        );

        write_reference(orb, sservantObject2, "ssIOR2.txt");

        sspoa.the_POAManager().activate();

        // Add a single servant POA that also allows to introduce the
        // explicitly activated alternative servant.
        POA sspoa_a = root_poa.create_POA("2a", null, policies_2a(root_poa));
View Full Code Here

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

                                       );

        org.omg.CORBA.Object sservantObject1aother =
          sspoa_a.id_to_reference(new byte[] { 4, 4, 4, 5, 5, 5, 5 });

        sspoa_a.the_POAManager().activate();

        // Activate the servant that would handle the redirections.
        poa_Servant redirection_handler =
          new poa_Servant()
          {
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.