Examples of CtsCmp2LocalHome


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

   public void testV1() throws RemoteException
   {
      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");
View Full Code Here

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

   public void testV2() throws RemoteException
   {
      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 = {};
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.