User: fleury
Date: 00/08/09 18:17:58
Modified: src/java/org/jboss/zol/testbean/bean
StatefulSessionBean.java StatelessSessionBean.java
Log:
New series of zola test
Revision Changes Path
1.5 +18 -1
zola/src/java/org/jboss/zol/testbean/bean/StatefulSessionBean.java
Index: StatefulSessionBean.java
===================================================================
RCS file:
/products/cvs/ejboss/zola/src/java/org/jboss/zol/testbean/bean/StatefulSessionBean.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- StatefulSessionBean.java 2000/06/04 18:34:14 1.4
+++ StatefulSessionBean.java 2000/08/10 01:17:58 1.5
@@ -48,8 +48,25 @@
return "I was created with Stateful String "+name;
}
+ public String callBusinessMethodB() {
+ System.out.println("StatefulSessionBean.callBusinessMethodB()
called");
+ // Check that my EJBObject is there
+ EJBObject ejbObject = sessionContext.getEJBObject();
+ if (ejbObject == null) {
+ System.out.println("CACA");
+ return "ISNULL:NOT FOUND!!!!!";
+
+ }
+ else {
+ System.out.println("CACA2");
+
+ return ejbObject.toString();
+
+ }
+ }
+
public void setSessionContext(SessionContext context) throws RemoteException {
- System.out.println("StatefulSessionBean.setSessionContext() called");
+ System.out.println("StatefulSessionBean.setSessionContext("+context+")
called");
sessionContext = context;
}
}
1.4 +4 -0
zola/src/java/org/jboss/zol/testbean/bean/StatelessSessionBean.java
Index: StatelessSessionBean.java
===================================================================
RCS file:
/products/cvs/ejboss/zola/src/java/org/jboss/zol/testbean/bean/StatelessSessionBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- StatelessSessionBean.java 2000/08/07 19:43:25 1.3
+++ StatelessSessionBean.java 2000/08/10 01:17:58 1.4
@@ -35,12 +35,16 @@
public void setSessionContext(SessionContext context) throws RemoteException {
System.out.println("StatelessSessionBean.setSessionContext() called");
+ Exception e = new Exception();
+ e.printStackTrace();
sessionContext = context;
}
public void callBusinessMethodA() {
//Do nothing just make sure the call works
System.out.println("StatelessSessionBean.callBusinessMethodA() called");
+ Exception e = new Exception();
+ e.printStackTrace();
}
public String callBusinessMethodB() {