Package org.omg.CORBA

Examples of org.omg.CORBA.ORB.string_to_object()


    {
        ORB orb = setup.getClientOrb();
        String ior = setup.getServerIOR();
        org.omg.CORBA.Object ref = orb.string_to_object( ior );
        // Use an unchecked narrow so it doesn't do an is_a call remotely.
        server = GreetingServiceHelper.unchecked_narrow(orb.string_to_object(miopURL));

        String s = "Oneway call";
        server.greeting_oneway(s);

        //Wait for the server receives the first request.
View Full Code Here


        // create a UIPMC object
        UIPMCObjectImpl uipmcImpl = new UIPMCObjectImpl(payload_length,
                                                        client_threads,
                                                        payload_calls);

        org.omg.CORBA.Object obj = orb.string_to_object(uipmc_url);

        byte[] oid = goa.create_id_for_reference(obj);
        goa.activate_object_with_id(oid, uipmcImpl);

        UIPMC_Object uipmc_obj = UIPMC_ObjectHelper.unchecked_narrow(obj);
View Full Code Here

        // init ORB
        ORB orb = ORB.init(args, props);

        if (!parse_args(args)) return;

        Hello hello_obj = HelloHelper.narrow(orb.string_to_object(ior));

        if (do_shutdown)
            hello_obj.shutdown();
        else
        {
View Full Code Here

        new BufferedReader( new FileReader( f ));

        String iorString = br.readLine();

        // get object reference from command-line argument file
        org.omg.CORBA.Object obj = orb.string_to_object( iorString );

        br.close();

        // and narrow it to HelloWorld.GoodDay
        // if this fails, a BAD_PARAM will be thrown
View Full Code Here

    {
        String _filterFactoryConf = getFilterFactoryLocation(container);

        ORB orb = (ORB) container.getComponentInstance(ORB.class);

        return FilterFactoryHelper.narrow(orb.string_to_object(_filterFactoryConf));
    }

    private String getFilterFactoryLocation(PicoContainer container)
    {
        Configuration config = (Configuration) container.getComponentInstance(Configuration.class);
View Full Code Here

    public void sayHello()
    {
        String hello = "Hello, World!";
        TestUtils.getLogger().debug(hello);
        ORB orb = this._orb();
        Hello obj = HelloHelper.narrow(orb.string_to_object(ior));

        assertFalse("Object is null ", obj == null);
        obj.sayGoodbye();

        obj._get_component ();
View Full Code Here

    {
        ORB orb = ORB.init(args, null);

        BufferedReader reader = new BufferedReader(new FileReader(args[0]));

        MyServer s = MyServerHelper.narrow(orb.string_to_object(reader.readLine()));

        UnitedColors my_union = new UnitedColors();
        UnitedColorsHolder my_union_holder = new UnitedColorsHolder();

        // set up union and make call
View Full Code Here

         + helloPOAPersistent.the_name() + "/" + helloID;

         System.out.println("Server 1 can be reached with:");
         System.out.println("   " + corbalocStr + "\n");

         org.omg.CORBA.Object objP = orb.string_to_object(corbalocStr);
         System.out.println("Server 1 ior: " + orb.object_to_string (objP));

         PrintWriter ps = new PrintWriter(new FileOutputStream(new File( args[0] ) + "persistent"));
         ps.println( orb.object_to_string( objP ) );
         ps.close();
View Full Code Here

            if (f.isDirectory()) {
                System.out.println("File " + args[0] + " is a directory.");
                System.exit(-1);
            }
            BufferedReader br = new BufferedReader(new FileReader(f));
            org.omg.CORBA.Object obj = orb.string_to_object(br.readLine());
            br.close();
            SASDemo demo = SASDemoHelper.narrow(obj);

            //call single operation
            demo.printSAS();
View Full Code Here

            BufferedReader br =
                new BufferedReader( new FileReader( f ));

            // get object reference from command-line argument file
            org.omg.CORBA.Object obj =
                orb.string_to_object( br.readLine() );

            obj._validate_connection (new PolicyListHolder ());

            br.close();
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.