Examples of id_to_reference()


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

            POA bindingPOA = rootPOA.create_POA("BindingPOA", poaManager, policies);
           // CorbaDSIServant servant = new CorbaDSIServant(orb, bindingPOA, this, observer);
            CorbaDSIServant servant = new CorbaDSIServant();
            servant.init(orb, bindingPOA, this, observer);
            byte[] objectId = bindingPOA.activate_object(servant);
            obj = bindingPOA.id_to_reference(objectId);
           
            // Register the object reference so we can support passing references as
            // parameters and return types.  Note that we need the actual endpoint that
            // this object reference has been created on.  This is available through the
            // endpointInfo object passed during construction.
View Full Code Here

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

        poa.the_activator(new gnuAdapterActivator());

        POA npoa = poa.find_POA("xactivated", true);

        npoa.activate_object_with_id(new byte[] { 7, 5 }, new poa_Servant());
        write_reference(orb, npoa.id_to_reference(new byte[] { 7, 5 }),
                        "xactivated"
                       );

        root_poa.the_POAManager().activate();
        poa.the_POAManager().activate();
View Full Code Here

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

        sspoa_a.activate_object_with_id(new byte[] { 4, 4, 4, 5, 5, 5, 5 },
                                        new poa_Servant()
                                       );

        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 =
View Full Code Here

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

            // 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 );
        } catch (org.omg.CORBA.SystemException e) {
            throw wrapper.transNsCannotCreateInitialNcSys( e ) ;
View Full Code Here

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

                        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
                for (int n = 0; n < 3; n++) {
View Full Code Here

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

            // 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 );
        } catch (org.omg.CORBA.SystemException e) {
            throw wrapper.transNsCannotCreateInitialNcSys( e ) ;
View Full Code Here

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

        poa.the_POAManager().activate();

        // create the object reference
        poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
        org.omg.CORBA.Object obj = poa.id_to_reference( "Object".getBytes() );

        ParsedIOR pior = new ParsedIOR( orb.object_to_string(obj), orb, loggerMock);

        assertTrue
        (
View Full Code Here

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

        poa.the_POAManager().activate();

        // create the object reference
        poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
        org.omg.CORBA.Object obj = poa.id_to_reference( "Object".getBytes() );

        ParsedIOR pior = new ParsedIOR( orb.object_to_string(obj), orb, loggerMock);

        assertTrue
        (
View Full Code Here

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

        poa.the_POAManager().activate();

        // create the object reference
        poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
        org.omg.CORBA.Object obj = poa.id_to_reference( "Object".getBytes() );

        ParsedIOR pior = new ParsedIOR( orb1.object_to_string(obj), orb1, loggerMock);


        // Now create number two.
View Full Code Here

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

        poa.the_POAManager().activate();

        // create the object reference
        poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
        obj = poa.id_to_reference( "Object".getBytes() );

        ParsedIOR pior2 = new ParsedIOR( orb2.object_to_string(obj), orb1, loggerMock);

        assertTrue
        (
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.