Package org.omg.PortableServer

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


        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 = ORB.init(new String[0], null);
        server_ = CurrentServerHelper.narrow(clientORB.string_to_object(objString));
View Full Code Here


        _poa.the_POAManager().activate();

        EchoServerImpl _server = new EchoServerImpl();

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


        //         NamingContextExt _nc =
        //             NamingContextExtHelper.narrow( _orb.resolve_initial_references( "NameService" ) );
View Full Code Here

        serverORB = ORB.init(new String[0], 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));
    }

    protected void tearDown() throws Exception
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

        server_orb_ = ORB.init(new String[0], new Properties());

        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()
        {
            public void run() {
View Full Code Here

        if (tester_ != null)
            tester_.test_transport_current (this._orb (), logger_);

        try {
            POA rootPOA = POAHelper.narrow (_orb ().resolve_initial_references ("RootPOA"));
            CurrentServer server_ = CurrentServerHelper.narrow (rootPOA.servant_to_reference (this));

            server_.invoked_during_upcall ();
        }
        catch (InvalidName e) {
            // TODO Auto-generated catch block
View Full Code Here

        try
        {
            ORB orb = ORB.init( args, null );
            POA poa = (POA) orb.resolve_initial_references( "RootPOA" );
            poa.the_POAManager().activate();
            org.omg.CORBA.Object demo = poa.servant_to_reference( new Server( orb ));
            PrintWriter pw = new PrintWriter( new FileWriter( args[ 0 ] ));
            pw.println( orb.object_to_string( demo ));
            pw.flush();
            pw.close();
            orb.run();
View Full Code Here

            POA securePOA = rootPOA.create_POA("SecurePOA", rootPOA.the_POAManager(), policies);
            rootPOA.the_POAManager().activate();

            // create object and write out IOR
            securePOA.activate_object_with_id("SecureObject".getBytes(), this);
            org.omg.CORBA.Object demo = securePOA.servant_to_reference(this);
            PrintWriter pw = new PrintWriter(new FileWriter(args[0]));
            pw.println(orb.object_to_string(demo));
            pw.flush();
            pw.close();
        } catch (Exception e) {
View Full Code Here

            rootPOA.the_POAManager().activate();

            // create object and write out IOR
            GssUpServer server = new GssUpServer(orb);
            securePOA.activate_object_with_id("SecureObject".getBytes(), server);
            org.omg.CORBA.Object demo = securePOA.servant_to_reference(server);
            PrintWriter pw = new PrintWriter(new FileWriter(args[0]));
            pw.println(orb.object_to_string(demo));
            pw.flush();
            pw.close();
View Full Code Here

            Current current = (org.omg.SecurityLevel2.Current)
                orb.resolve_initial_references( "SecurityCurrent" );

            org.omg.CORBA.Object demo =
                poa.servant_to_reference( new Server( current ));

            PrintWriter pw =
                new PrintWriter( new FileWriter( args[ 0 ] ));

            // print stringified object reference to file
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.