Package org.jacorb.orb

Examples of org.jacorb.orb.CDRInputStream.read_value()


      Properties properties = new Properties();
      properties.put("jacorb.interop.sun", "on");
      ORB jacorborb = org.omg.CORBA.ORB.init (new String[]{}, properties);
      CDRInputStream in = new CDRInputStream(jacorborb, result);

      Something s = (Something)in.read_value();

      System.out.println("### the value is : " + s.value + "\nthe number is " + s.number);

      foreignorb.shutdown(true);
      jacorborb.shutdown(true);
View Full Code Here


      properties.put("jacorb.interop.sun", "on");
      ORB jacorborb = org.omg.CORBA.ORB.init (new String[]{}, properties);
      CDRInputStream in = new CDRInputStream(jacorborb, result);


      NegativeArgumentException n = (NegativeArgumentException)in.read_value();
      System.out.println("the value i is : " + n.i + "\nthe static value j is : " + n.j+" \nmessage " + n.getMessage());

      foreignorb.shutdown(true);
      jacorborb.shutdown(true);
      assertTrue (n.i == -10);
View Full Code Here

      Properties properties = new Properties();
      properties.put("jacorb.interop.sun", "on");
      ORB jacorborb = getAnotherORB(properties);
      CDRInputStream in = new CDRInputStream(jacorborb, result);

      Something s = (Something)in.read_value();

      in.close();

      foreignorb.shutdown(true);
      assertTrue (s.number == -10);
View Full Code Here

      Properties properties = new Properties();
      properties.put("jacorb.interop.sun", "on");
      ORB jacorborb = this.getAnotherORB(properties);
      CDRInputStream in = new CDRInputStream(jacorborb, result);

      NegativeArgumentException n = (NegativeArgumentException)in.read_value();
      in.close();

      foreignorb.shutdown(true);

      assertTrue (n.i == -10);
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.