Package org.omg.PortableServer

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


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

        for (int count=0;count<100;count++)
        {
            poa.deactivate_object(id);
            poa.activate_object_with_id(id, soi);
        }
    }


    /**
 
View Full Code Here


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

        for (int count=0;count<100;count++)
        {
            poa.deactivate_object(id);
            poa.activate_object_with_id( id, soi);
        }
    }


    @Test
View Full Code Here

                System.out.println("SERVER: got NotFound exception, " + e.getMessage());
            }

            // create servant object
            EchoMessageImpl echoServant = new EchoMessageImpl(implName + "." + objectId);
            poa.activate_object_with_id(objectId.getBytes(), echoServant);
            org.omg.CORBA.Object ref = poa.servant_to_reference(echoServant);
            System.out.println("SERVER: call nsRootContext.rebind(context, ref)");
            try
            {
                nsRootContext.rebind(context, ref);
View Full Code Here

        {
            policies[i].destroy();
        }

        Servant servant =  new RepositoryPOATie( this );
        ifrPOA.activate_object_with_id("IfR".getBytes(), servant);

        Repository myRef =
            RepositoryHelper.narrow(
                    ifrPOA.servant_to_reference( servant ) );
View Full Code Here

            final String ior;
            if (useCorbaloc())
            {
                String oid = System.getProperty ("jacorb.test.corbaloc.objectid");
                poa.activate_object_with_id (oid.getBytes(), servant);
                String shortcut = System.getProperty ("jacorb.test.corbaloc.shortcut");
                if (shortcut != null)
                    ((org.jacorb.orb.ORB)orb).addObjectKey(shortcut,
                            System.getProperty ("jacorb.test.corbaloc.implname")
                    + "/" + System.getProperty ("jacorb.test.corbaloc.poaname")
View Full Code Here

                // create the object reference
                org.omg.CORBA.Object obj = null;

                if (useIMR())
                {
                    poa.activate_object_with_id (servant.getClass().getName().getBytes(), servant);
                    obj = poa.id_to_reference (servant.getClass().getName().getBytes());
                }
                else
                {
                    obj = poa.servant_to_reference( servant );
View Full Code Here

         poa.the_POAManager().activate();

         // create servant object
         EchoMessageImpl echoServant = new EchoMessageImpl(implName + "." + objectId);
         poa.activate_object_with_id(objectId.getBytes(), echoServant);
         final org.omg.CORBA.Object ref = poa.servant_to_reference(echoServant);
         String ior = orb.object_to_string(ref);
         System.out.println("SERVER IOR: " + ior);
         System.out.flush();
View Full Code Here

        }

        byte[] id = "ImR".getBytes();


        imr_poa.activate_object_with_id( id, _imr );

        PrintWriter _out = new PrintWriter
                (new FileOutputStream(new File(_imr.getIORFile())));

        final org.omg.CORBA.Object imrReference = imr_poa.servant_to_reference(_imr);
View Full Code Here

                TestUtils.getLogger().debug("SERVER: got NotFound exception, " + e.getMessage());
            }

            // create servant object
            EchoMessageImpl echoServant = new EchoMessageImpl(implName + "." + objectId);
            poa.activate_object_with_id(objectId.getBytes(), echoServant);
            org.omg.CORBA.Object ref = poa.servant_to_reference(echoServant);
            try
            {
                nsRootContext.rebind(context, ref);
            }
View Full Code Here

         policies[2] = orb.create_policy(SAS_POLICY_TYPE.value, sasAny);
         POA securePOA = rootPOA.create_POA("SecurePOA", rootPOA.the_POAManager(), policies);
         rootPOA.the_POAManager().activate();

         CustomBasicServerImpl server = new CustomBasicServerImpl(orb);
         securePOA.activate_object_with_id("SecureObject".getBytes(), server);
         org.omg.CORBA.Object obj = securePOA.servant_to_reference(server);

         System.out.println ("SERVER IOR: " + orb.object_to_string(obj));
         System.out.flush();
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.