User: fleury
Date: 00/08/07 12:43:27
Modified: src/java/org/jboss/zol/testbean/client EjbossClient.java
Log:
The getEJBObject bug is real in stateless.
Will commit tests to do all types of beans. We know the EnterpriseEntity ones work
fine
Revision Changes Path
1.10 +21 -5 zola/src/java/org/jboss/zol/testbean/client/EjbossClient.java
Index: EjbossClient.java
===================================================================
RCS file:
/products/cvs/ejboss/zola/src/java/org/jboss/zol/testbean/client/EjbossClient.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- EjbossClient.java 2000/08/01 17:14:40 1.9
+++ EjbossClient.java 2000/08/07 19:43:26 1.10
@@ -30,7 +30,7 @@
* It works with the HelloWorld2.jar bean jar.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
- * @version $Id: EjbossClient.java,v 1.9 2000/08/01 17:14:40 salborini Exp $
+ * @version $Id: EjbossClient.java,v 1.10 2000/08/07 19:43:26 fleury Exp $
*/
public class EjbossClient {
@@ -55,6 +55,9 @@
Object aObject = new AComplexPK();
+
+
+
System.out.println();
System.out.println("Test Stateless Bean");
System.out.println("===================");
@@ -89,8 +92,10 @@
}
catch (Exception e) {
System.out.println("ERROR, type "+e.getClass());
- }
-
+ }
+ System.out.print("Calling Business Method E on StatelessSession... ");
+ System.out.println(statelessSession.callBusinessMethodE());
+
System.out.print("Calling testClassLoading on StatelessSession... ");
try {
statelessSession.testClassLoading();
@@ -167,12 +172,21 @@
if (enterpriseEntity.getEJBHome() != null) System.out.println("ok");
else throw new Exception ("new home not ok");
+ System.out.print("Getting a new reference with findByPK...");
+ try {
+ enterpriseEntity =
enterpriseEntityHome.findByPrimaryKey("Marc");
+ }
+ catch (Exception re) {
+ re.printStackTrace();
+ }
+ if (enterpriseEntity != null) System.out.println("ok");
+ else System.out.println("not ok");
System.out.println("Calling Business Method A on enterpriseEntity... ");
System.out.println(enterpriseEntity.callBusinessMethodA());
System.out.print("Calling method createEntity on enterpriseEntity... ");
EnterpriseEntity marc2 = enterpriseEntity.createEntity("marc2");
- System.out.println("OK");
+ System.out.println("OK");
System.out.print("Calling EnterpriseEntity.remove() for marc2...");
marc2.remove();
@@ -186,7 +200,8 @@
System.out.println();
System.out.println();
System.out.println();
-
+
+
System.out.println();
System.out.println();
System.out.println("Test Entity Bean BMP");
@@ -295,6 +310,7 @@
System.out.println("not found, OK");
}
+
System.out.println();
System.out.println();