Examples of servant_to_id()


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

        if (thisServant_ != null)
        {
            final POA _poa = delegate_.getPOA();
            try
            {
                final byte[] _oid = _poa.servant_to_id(thisServant_);
                delegate_.getPOA().deactivate_object(_oid);
            }
            catch (WrongPolicy e)
            {
                throw new RuntimeException();
View Full Code Here

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

          }

        byte[] servantId = null;
        try
          {
            servantId = poa.servant_to_id(this);
          }
        catch (ServantNotActive ex)
          {
            throw new RuntimeException();
          }
View Full Code Here

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

    // Test: servant_to_id (IMPLICIT_ACTIVATION, MULTIPLE_ID) - servant1
    //       should be automatically activated
    //
    try
      {
        id1 = multiple.servant_to_id(servant1);
      }
    catch (WrongPolicy ex)
      {
        ex.printStackTrace();
        fail(ex);
View Full Code Here

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

    //
    // Test: Since we have MULTIPLE_ID, we should get a new ID
    //
    try
      {
        tmpid = multiple.servant_to_id(servant1);
      }
    catch (WrongPolicy ex)
      {
        fail(ex);
        throw new RuntimeException(ex);
View Full Code Here

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

            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 )
        {
            fail( "unexpected exception: " + e );
View Full Code Here

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

            poa.the_POAManager().activate();

            BasicServerImpl soi = new BasicServerImpl();

            // This will activate it so do deactivate first
            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

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

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

        poa.the_POAManager().activate();

        BasicServerImpl soi = new BasicServerImpl();

        // This will activate it so do deactivate first
        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

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

            String className = args[0];
            Class servantClass = Class.forName (className);
            Servant servant = ( Servant ) servantClass.newInstance();

            // Get the id
            byte []oid = poa.servant_to_id (servant);

            // create the object reference
            org.omg.CORBA.Object obj = poa.id_to_reference (oid);

            System.out.println ("SERVER IOR: " + orb.object_to_string(obj));
View Full Code Here

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

            String className = args[0];
            Class servantClass = Class.forName (className);
            Servant servant = ( Servant ) servantClass.newInstance();

            // Get the id
            byte []oid = poa.servant_to_id (servant);

            // create the object reference
            org.omg.CORBA.Object obj = poa.id_to_reference (oid);

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