Examples of servant_to_reference()


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

            } 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

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

            } 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

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

            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

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

        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

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

            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

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

            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

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

            orbThread.start();

            // create peter and write his IOR
            Basic_Client server = new Basic_Client();
            bidirPOA.activate_object(server);
            Peter peter = PeterHelper.narrow(bidirPOA.servant_to_reference(server));
            PrintWriter pw = new PrintWriter(new FileWriter("peter.ior"));
            pw.println(orb.object_to_string(peter));
            pw.flush();
            pw.close();
View Full Code Here

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

            // create peter and write his IOR
            UP_Client server = new UP_Client();
            securePOA.activate_object_with_id("SecurePeter".getBytes(), server);
            Peter peter = PeterHelper.narrow(rootPOA.servant_to_reference(server));
            org.omg.CORBA.Object demo = securePOA.servant_to_reference(server);
            PrintWriter pw = new PrintWriter(new FileWriter("peter.ior"));
            pw.println(orb.object_to_string(demo));
            pw.flush();
            pw.close();
View Full Code Here

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

        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 CurrentServerImpl(serverORB, new DefaultTester()));
        String objString = serverORB.object_to_string(obj);

        new Thread()
        {
            public void run() {
View Full Code Here

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

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