Package org.jboss.test.iiop.interfaces

Examples of org.jboss.test.iiop.interfaces.Boo


         (StatelessSessionHome)PortableRemoteObject.narrow(
                    getInitialContext().lookup(StatelessSessionHome.JNDI_NAME),
                    StatelessSessionHome.class);
      StatelessSession session = home.create();
      //----------------------------------------------------------------------
      Boo original = new Boo("t1", "boo test");
      java.lang.Object echoedBack = session.booValueToObject(original);
      assertEquals(Util.echoBoo(original), echoedBack);
      //----------------------------------------------------------------------
      session.remove();
   }
View Full Code Here


      StatelessSession session = home.create();
      //----------------------------------------------------------------------
      int n = 100;
      Object[] original = new Object[n];
      for (int i = 0; i < n; i++)
         original[i] = new Boo("t" + i, "boo array test");
      Object[] echoedBack =
         session.testReferenceSharingWithinArray(original);
      assertEquals(2 * n, echoedBack.length);
      for (int i = 0; i < n; i++)
      {
View Full Code Here

      return newFoo;
   }
  
   public static Boo echoBoo(Boo f)
   {
      Boo newBoo = new Boo(f.id, f.name);
      newBoo.id += "+";
      newBoo.name += " <";
      return newBoo;
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.iiop.interfaces.Boo

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.