Package gnu.testlet.org.omg.CORBA.ORB.communication

Examples of gnu.testlet.org.omg.CORBA.ORB.communication.comServant


        // Create and initialize the ORB.
        orb = org.omg.CORBA.ORB.init(args, null);

        // Create the test 1 servant and register it with the ORB.
        comServant tester = new comServant();
        orb.connect(tester);

        // Create the test 2 servant and register it with the ORB.
        GreetingsServant tester2 = new GreetingsServant();
        orb.connect(tester2);
View Full Code Here


    ORB orb = ORB.init(new String[ 0 ], null);
    Any an = orb.create_any();

    OutputStream out = an.create_output_stream();

    comServant object = new comServant();
    orb.connect(object);

    out.write_Object(object);

    IOR ior = IORHelper.read(out.create_input_stream());

    boolean ip = false;

    for (int i = 0; i < ior.profiles.length; i++)
      {
        if (ior.profiles [ i ].tag == TAG_INTERNET_IOP.value)
          {
            if (ip)
              h.fail("HR:One internet profile expected");
            ip = true;
            h.check(ior.profiles [ i ].profile_data.length > 0,
                    "HR:Internet profile data"
                   );
          }
      }
    h.check(ip, "HR:Internet profile present");

    h.check(object._is_a(ior.type_id), "HR id");
    h.check(ior.profiles.length > 0, "HR profiles");

    out = orb.create_any().create_output_stream();

    IORHelper.write(out, ior);
View Full Code Here

TOP

Related Classes of gnu.testlet.org.omg.CORBA.ORB.communication.comServant

Copyright © 2018 www.massapicom. 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.