User: salborini
  Date: 00/08/29 15:10:30

  Modified:    src/java/org/jboss/zol/testbean/bean
                        StatelessSessionBean.java
  Log:
  Added overloaded method in bean and remote interface for the test to work
  
  Revision  Changes    Path
  1.7       +16 -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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- StatelessSessionBean.java 2000/08/18 03:30:36     1.6
  +++ StatelessSessionBean.java 2000/08/29 22:10:29     1.7
  @@ -55,6 +55,22 @@
          }catch (Exception e) { return "Error in the lookup of properties  
"+e.getMessage();}
     }
   
  +  public String callBusinessMethodB(String words) {
  +          // test if overloaded methods are properly called
  +          System.out.println("StatelessSessionBean.callBusinessMethodB(String) 
called");
  +         // Check that my EJBObject is there
  +              EJBObject ejbObject = sessionContext.getEJBObject();
  +              if (ejbObject == null) {
  +                      return "ISNULL:NOT FOUND!!!!!";
  +             
  +              }
  +              else {
  +                     return "OK ejbObject is "+ejbObject.toString()+" words "+words;
  +                     
  +              }                       
  +  
  +  }
  +
     public String callBusinessMethodC() {
          System.out.println("StatelessSessionBean.callBusinessMethodC() called");
          try {
  
  
  

Reply via email to