Package org.jboss.test.cts.interfaces

Examples of org.jboss.test.cts.interfaces.CtsCmp2Local


   {
      try
      {
         InitialContext ctx = new InitialContext();
         CtsCmp2LocalHome home = (CtsCmp2LocalHome) ctx.lookup("java:comp/env/ejb/CtsCmp2LocalHome");
         CtsCmp2Local bean = home.create("key1", "data1");
         System.out.print("java:comp/env/ejb/CtsCmp2LocalHome bean: "+bean);
         String data = bean.getData();
         System.out.print("Called getData: "+data);
         bean.remove();
         System.out.print("java:comp/env/ejb/CtsCmp2LocalHome passed");
      }
      catch(Exception e)
      {
         throw new ServerException("testV1 failed", e);
View Full Code Here


   {
      try
      {
         InitialContext ctx = new InitialContext();
         CtsCmp2LocalHome home = (CtsCmp2LocalHome) ctx.lookup("java:comp/env/ejb/CtsCmp2LocalHome");
         CtsCmp2Local bean = home.create("key1", "data1");
         System.out.print("java:comp/env/ejb/CtsCmp2LocalHome bean: "+bean);
         String data = bean.getData();
         Class[] sig = {};
         Method getMoreData = bean.getClass().getMethod("getMoreData", sig);
         Object[] args = {};
         data = (String) getMoreData.invoke(bean, args);
         System.out.print("Called getMoreData: "+data);
         bean.remove();
         System.out.print("java:comp/env/ejb/CtsCmp2LocalHome passed");
      }
      catch(Exception e)
      {
         throw new ServerException("testV2 failed", e);
View Full Code Here

TOP

Related Classes of org.jboss.test.cts.interfaces.CtsCmp2Local

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.