Examples of activate_object()


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

            nsPOA.the_POAManager().activate();

            // Create an initial context
            TransientNamingContext initialContext =
                new TransientNamingContext(orb, null, nsPOA);
            byte[] rootContextId = nsPOA.activate_object( initialContext );
            initialContext.localRoot =
                nsPOA.id_to_reference( rootContextId );
            theInitialNamingContext = initialContext.localRoot;
            orb.register_initial_reference( nameServiceName,
                theInitialNamingContext );
View Full Code Here

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

                    .create_id_uniqueness_policy(
                        org.omg.PortableServer.IdUniquenessPolicyValue.UNIQUE_ID);

            POA bindingPOA = rootPOA.create_POA("BindingPOA", poaManager, policies);
            CorbaDSIServant servant = new CorbaDSIServant(orb, bindingPOA, this, sbeCallback);
            byte[] objectId = bindingPOA.activate_object(servant);
            obj = bindingPOA.id_to_reference(objectId);
           
            if (location.startsWith("relfile:")) {
                String iorFile = location.substring("relfile:".length(), location.length());
                // allow for up to 3 '/' to match common uses of relfile url format
View Full Code Here

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

    public void orb(org.omg.CORBA.ORB orb) {
        try {
            POA _poa = POAHelper.narrow(orb
                    .resolve_initial_references("RootPOA"));

            _poa.activate_object(this);
        } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {
            throw new RuntimeException("ORB must have POA support");
        } catch (org.omg.PortableServer.POAPackage.WrongPolicy ex) {
            throw new RuntimeException("wrong policy: " + ex);
        } catch (org.omg.PortableServer.POAPackage.ServantAlreadyActive ex) {
View Full Code Here

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

            nsPOA.the_POAManager().activate();

            // Create an initial context
            TransientNamingContext initialContext =
                new TransientNamingContext(orb, null, nsPOA);
            byte[] rootContextId = nsPOA.activate_object( initialContext );
            initialContext.localRoot =
                nsPOA.id_to_reference( rootContextId );
            theInitialNamingContext = initialContext.localRoot;
            orb.register_initial_reference( nameServiceName,
                theInitialNamingContext );
View Full Code Here

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

            });
            orbThread.start();

            // create peter and write his IOR
            Basic_Client server = new Basic_Client();
            bidirPOA.activate_object(server);
            Peter peter = PeterHelper.narrow(bidirPOA.servant_to_reference(server));
            PrintWriter pw = new PrintWriter(new FileWriter("peter.ior"));
            pw.println(orb.object_to_string(peter));
            pw.flush();
            pw.close();
View Full Code Here

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

            BasicServerImpl soi = new BasicServerImpl();

            for (int count=0;count<100;count++)
            {
//                System.out.println("Iteration #"+count+" - activating object");
                poa.activate_object( soi);
//                System.out.println("Iteration #"+count+" - deactivating object");
                poa.deactivate_object(poa.servant_to_id(soi));
            }
        }
        catch( Exception e )
View Full Code Here

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

            POA poa = rootPoa.create_POA("system_id", rootPoa.the_POAManager(), policies);

            BasicServerImpl soi = new BasicServerImpl();

            byte [] id = poa.activate_object(soi);

            for (int count=0;count<100;count++)
            {
                poa.deactivate_object(id);
                poa.activate_object_with_id( id, soi);
View Full Code Here

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

        BasicServerImpl soi = new BasicServerImpl();

        for (int count=0;count<100;count++)
        {
            poa.activate_object( soi);
            poa.deactivate_object(poa.servant_to_id(soi));
        }
    }

View Full Code Here

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

        POA poa = rootPoa.create_POA("system_id", rootPoa.the_POAManager(), policies);

        BasicServerImpl soi = new BasicServerImpl();

        byte [] id = poa.activate_object(soi);

        for (int count=0;count<100;count++)
        {
            poa.deactivate_object(id);
            poa.activate_object_with_id( id, soi);
View Full Code Here

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

            poa.the_POAManager().activate();

            BasicServerImpl soi = new BasicServerImpl();

            poa.activate_object( soi);
            poa.activate_object( soi);
            fail();
        }
        catch (ServantAlreadyActive e)
        {
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.