Package org.omg.PortableServer

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


        server_orb_ = this.getAnotherORB(null);

        POA rootPOA = POAHelper.narrow(server_orb_.resolve_initial_references("RootPOA"));
        rootPOA.the_POAManager().activate();
        org.omg.CORBA.Object obj = rootPOA.servant_to_reference(new CurrentServerImpl(server_orb_, null));
        String objString = server_orb_.object_to_string(obj);

        new Thread()
        {
            @Override
View Full Code Here


        POA rootPOA = POAHelper.narrow(serverORB.resolve_initial_references("RootPOA"));
        rootPOA.the_POAManager().activate();

        Servant si = new CurrentServerImpl(serverORB, new IIOPTester());
        org.omg.CORBA.Object obj = rootPOA.servant_to_reference(si);
        String objString = serverORB.object_to_string(obj);

        clientORB = this.getAnotherORB(clientProps);
        server_ = CurrentServerHelper.narrow(clientORB.string_to_object(objString));
    }
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 Server() );

        PrintWriter out = new PrintWriter( new FileWriter( args[0] ));
        out.println( orb.object_to_string( o ));
        out.flush();
        out.close();
View Full Code Here

        POA bidir_poa = root_poa.create_POA( "BiDirPOA",
                                             root_poa.the_POAManager(),
                                             policies );
        bidir_poa.the_POAManager().activate();

        ClientCallback ccb = ClientCallbackHelper.narrow( bidir_poa.servant_to_reference( new Client() ));

//        PrintWriter out = new PrintWriter( new FileWriter( "callback_IOR" ));
//        out.println( orb.object_to_string( ccb ));
//        out.flush();
//        out.close();
View Full Code Here

        // Create the servant
        RemotePIServerImpl remote = new RemotePIServerImpl (rootPOA);

        rootPOA.the_POAManager().activate();

        org.omg.CORBA.Object obj = rootPOA.servant_to_reference (remote);

        PrintWriter pw = new PrintWriter (new FileWriter ("remoteserver.ior"));

        pw.println (orb.object_to_string (obj));
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();

         if (cmdArgs.getIORFile() != null)
View Full Code Here

        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);
        _out.println(orb.object_to_string(imrReference));
        _out.flush();
        _out.close();

        if (printIOR)
View Full Code Here

        serverORB = this.getAnotherORB(serverProps);

        POA rootPOA = POAHelper.narrow(serverORB.resolve_initial_references("RootPOA"));
        rootPOA.the_POAManager().activate();

        org.omg.CORBA.Object obj = rootPOA.servant_to_reference(new JAC181Impl());
        String objString = serverORB.object_to_string(obj);
        server = JAC181Helper.narrow(clientORB.string_to_object(objString));
    }

    @After
View Full Code Here

        BasicServerImpl servant = new BasicServerImpl();

        rootPOA.activate_object(servant);

        BasicServer server = BasicServerHelper.narrow(rootPOA.servant_to_reference(servant));

        assertEquals(42, server.bounce_long(42));

        rootPOA.deactivate_object(rootPOA.servant_to_id(servant));
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);
            try
            {
                nsRootContext.rebind(context, ref);
            }
            catch (NotFound e)
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.