Examples of reference_to_id()


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

        BasicServer ref = BasicServerHelper.narrow(objectRef);
        // Local op; will incarnate the object.
        ref.ping();

        // Now try deactivating it.
        system.deactivate_object (system.reference_to_id(ref));
    }

    /**
     * <code>PoaServantActivator</code> is a ServantActivator for
     * test_deactivate_activator.
 
View Full Code Here

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

        org.omg.CORBA.Object obj = rootPOA.servant_to_reference (impl);
        rootPOA.reference_to_id(obj);
        try
        {
            poa.reference_to_id(obj);

            fail ("Should have thrown wrong adapter");
        }
        catch (WrongAdapter e)
        {
View Full Code Here

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

            // expected
        }


        org.omg.CORBA.Object obj2 = poa.create_reference_with_id("id1".getBytes (), BasicServerHelper.id ());
        poa.reference_to_id(obj2);
        try
        {
            rootPOA.reference_to_id(obj2);

            fail ("Should have thrown wrong adapter");
View Full Code Here

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

        ((org.jacorb.orb.ORB)orb).addObjectKey("blabla", orb.object_to_string(obj2));

        String url = "corbaloc::localhost:1234/blabla";
        org.omg.CORBA.Object obj3 = orb.string_to_object(url);

        poa.reference_to_id(obj3);
        try
        {
            rootPOA.reference_to_id(obj3);

            fail ("Should have thrown wrong adapter");
View Full Code Here

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

        url = "corbaloc::localhost:1234/foo";
        org.omg.CORBA.Object obj5 = orb.string_to_object(url);
        rootPOA.reference_to_id(obj5);
        try
        {
            poa.reference_to_id(obj5);

            fail ("Should have thrown wrong adapter");
        }
        catch (WrongAdapter e)
        {
View Full Code Here

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

     */
    public void shutdown() {
        POA poa = getPOA();

        try {
            poa.deactivate_object(poa.reference_to_id(getReference()));
        } catch (UserException ex) {
            logger.warn("Could not deactivate IR object", ex);
        }
    }

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.