User: peter   
  Date: 01/01/31 18:23:27

  Modified:    src/main/org/jboss/test/cts/ejb StatefulSessionBean.java
                        StatelessSessionBean.java
  Log:
  Merge fix.
  
  Revision  Changes    Path
  1.11      +11 -6     
jbosstest/src/main/org/jboss/test/cts/ejb/StatefulSessionBean.java
  
  Index: StatefulSessionBean.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/jbosstest/src/main/org/jboss/test/cts/ejb/StatefulSessionBean.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- StatefulSessionBean.java  2001/01/27 23:41:41     1.10
  +++ StatefulSessionBean.java  2001/02/01 02:23:26     1.11
  @@ -15,8 +15,8 @@
   /**
    *
    *   @see <related>
  - *   @author $Author: osh $
  - *   @version $Revision: 1.10 $
  + *   @author $Author: peter $
  + *   @version $Revision: 1.11 $
    */
   
   public class StatefulSessionBean
  @@ -201,17 +201,22 @@
           StatefulSessionHome home        =
              ( StatefulSessionHome ) ctx.lookup("ejbcts/StatefulSessionBean");
           StatefulSession     sessionBean;
  -        try {
  +        try 
  +        {
              sessionBean = home.create();
  -        } catch (CreateException ex) {
  -           System.out.println("Loopback CreateException: " + ex);
  -           throw new EJBException(ex);
  +        } 
  +        catch (CreateException crex) 
  +        {
  +           System.out.println("Loopback CreateException: " + crex);
  +           throw new EJBException(crex);
           }
           sessionBean.loopbackTest(sessionCtx.getEJBObject());
  +
         }
         catch (javax.naming.NamingException nex)
         {
            System.out.println("Could not locate bean instance");
  +         throw new EJBException(nex);
         }
      }
   
  
  
  
  1.6       +5 -2      
jbosstest/src/main/org/jboss/test/cts/ejb/StatelessSessionBean.java
  
  Index: StatelessSessionBean.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/jbosstest/src/main/org/jboss/test/cts/ejb/StatelessSessionBean.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- StatelessSessionBean.java 2001/01/27 23:41:41     1.5
  +++ StatelessSessionBean.java 2001/02/01 02:23:26     1.6
  @@ -74,9 +74,12 @@
           StatelessSessionHome home        =
              ( StatelessSessionHome ) ctx.lookup("ejbcts/StatelessSessionBean");
           StatelessSession     sessionBean;
  -        try {
  +        try 
  +        {
              sessionBean = home.create();
  -        } catch (CreateException ex) {
  +        } 
  +        catch (CreateException ex) 
  +        {
              System.out.println("Loopback CreateException: " + ex);
              throw new EJBException(ex);
           } 
  
  
  

Reply via email to