Package org.omg.PortableServer

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


                    ((org.jacorb.orb.ORB)orb).addObjectKey ("VeryShortKey", orb.object_to_string (objP));
              }
         }

         // Setup second server
         org.omg.CORBA.Object objT = helloPOATransient.servant_to_reference(new EchoMessageImpl("EchoPOA-Transient"));

         // Use the PrintIOR utility function to extract a transient corbaloc string.
         String corbalocStr = PrintIOR.printCorbalocIOR (orb, orb.object_to_string(objT));
         if (!cmdArgs.getTestMode())
         {
View Full Code Here


        POA childPOA = rootPOA.create_POA("Child", rootPOA.the_POAManager(), policies);
        childPOA.the_POAManager().activate();

        HelloImpl server = new HelloImpl();
        childPOA.activate_object_with_id("Hello".getBytes(), server);
        org.omg.CORBA.Object obj = childPOA.servant_to_reference(server);

        TestUtils.getLogger().debug("IOR is " + orb.object_to_string(obj));
        System.out.println("SERVER IOR: " + orb.object_to_string(obj));
        System.out.flush();
View Full Code Here

            JAC178Impl child = new JAC178Impl(orb, poa);

            poa.activate_object (child);

            org.omg.CORBA.Object obj = poa.servant_to_reference( child );

            return obj;
        }
        catch (Exception e)
        {
View Full Code Here

        AImpl s = new AImpl();

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

        String ior = orb.object_to_string( obj );

        System.out.println( "IOR is " + ior );
View Full Code Here

        POA poa = setup.getClientRootPOA();

        poa.the_POAManager().activate();

        localTestObject =
            poa.servant_to_reference( new TestObjectImpl());
    }

    @After
    public void tearDown() throws Exception
    {
View Full Code Here

        BImpl s = new BImpl();

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

        String ior = orb.object_to_string( obj );

        System.out.println( "IOR is " + ior );
View Full Code Here

            }

            // 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

            root_poa.the_POAManager(),
            policies);
        bidir_poa.the_POAManager().activate();

        org.omg.CORBA.Object o =
        bidir_poa.servant_to_reference(new BiDirServerImpl());

        System.out.println ("SERVER IOR: " + orb.object_to_string(o));
        System.out.flush();

        orb.run();
View Full Code Here

                new ReaderDataLifecycleQosPolicy(new Duration_t(0,0)));

            datareader = suscriber. create_datareader(topic,datareaderqos,null);
            foodatareader = FooDataReaderHelper.narrow(datareader);
            DataReaderListener listener =
                DataReaderListenerHelper.narrow(poa.servant_to_reference(new FooDataReaderListenerImpl())) ;

            if (foodatareader == null) {
                System.out.println ("Unable to get FooDataReader reference");
                return;
            }
View Full Code Here

            } else {
                _factory = EventChannelFactoryHelper.narrow(_orb.resolve_initial_references("NotificationService"));
            }

            org.omg.CORBA.Object cob =
                _poa.servant_to_reference(new WhiteBoardFactory(_orb, _poa, _factory));

            NameComponent [] name = new NameComponent[1];
            name[0] = new NameComponent( "WhiteBoard", "Factory");

            // an Namen binden
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.