Package InterOpTest

Examples of InterOpTest.Johnson


      URL iorURL = new URL(args[0]);
      System.out.println("Reading object from ior: "+args[0]);
      BufferedReader br = new BufferedReader(new InputStreamReader(iorURL.openStream()));//new FileReader(f));
      org.omg.CORBA.Object obj = orb.string_to_object(br.readLine());
      br.close();
      Johnson johnson = JohnsonHelper.narrow(obj);
     
      // call
            System.out.println("CSS1:"+johnson.say_hello("hello from JacORB"));
            System.out.println("CSS2:"+johnson.say_hello("hello from JacORB"));
            System.out.println("TSS1:"+johnson.say_hello_from_you(peter, 1));
            System.out.println("TSS2:"+johnson.say_hello_from_you(peter, 1));

      System.out.println("Call to server succeeded");
    } catch (Exception ex) {
            System.out.println("Error: " + ex + ": " + ex.getMessage());
      ex.printStackTrace();
View Full Code Here


      URL iorURL = new URL(args[0]);
      System.out.println("Reading object from ior: "+args[0]);
      BufferedReader br = new BufferedReader(new InputStreamReader(iorURL.openStream()));//new FileReader(f));
      org.omg.CORBA.Object obj = orb.string_to_object(br.readLine());
      br.close();
      Johnson johnson = JohnsonHelper.narrow(obj);
     
      // call
            System.out.println("CSS1:"+johnson.say_hello("hello from JacORB"));
            System.out.println("CSS2:"+johnson.say_hello("hello from JacORB"));
            System.out.println("TSS1:"+johnson.say_hello_from_you(peter, 1));
            System.out.println("TSS2:"+johnson.say_hello_from_you(peter, 1));

      System.out.println("Call to server succeeded");
    } catch (Exception ex) {
      ex.printStackTrace();
    }
View Full Code Here

      URL iorURL = new URL(args[0]);
      System.out.println("Reading object from ior: "+args[0]);
      BufferedReader br = new BufferedReader(new InputStreamReader(iorURL.openStream()));//new FileReader(f));
      org.omg.CORBA.Object obj = orb.string_to_object(br.readLine());
      br.close();
      Johnson johnson = JohnsonHelper.narrow(obj);
     
      // call
            System.out.println("CSS1:"+johnson.say_hello("hello from JacORB"));
            System.out.println("CSS2:"+johnson.say_hello("hello from JacORB"));
            System.out.println("TSS1:"+johnson.say_hello_from_you(peter, 1));
            System.out.println("TSS2:"+johnson.say_hello_from_you(peter, 1));

      System.out.println("Call to server succeeded");
    } catch (Exception ex) {
            System.out.println("Error: " + ex + ": " + ex.getMessage());
      ex.printStackTrace();
View Full Code Here

      URL iorURL = new URL(args[0]);
      System.out.println("Reading object from ior: "+args[0]);
      BufferedReader br = new BufferedReader(new InputStreamReader(iorURL.openStream()));//new FileReader(f));
      org.omg.CORBA.Object obj = orb.string_to_object(br.readLine());
      br.close();
      Johnson johnson = JohnsonHelper.narrow(obj);
     
      // call
            System.out.println("CSS1:"+johnson.say_hello("hello from JacORB"));
            System.out.println("CSS2:"+johnson.say_hello("hello from JacORB"));
            System.out.println("TSS1:"+johnson.say_hello_from_you(peter, 1));
            System.out.println("TSS2:"+johnson.say_hello_from_you(peter, 1));

      System.out.println("Call to server succeeded");
    } catch (Exception ex) {
      ex.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of InterOpTest.Johnson

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.