User: starksm 
  Date: 02/04/05 09:59:39

  Modified:    src/main/org/jboss/test/cts/interfaces Tag: Branch_2_4
                        StatefulSessionHome.java
  Log:
  Add tests of execeptions thrown from the SessionSynchronization methods
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.6.2.1   +13 -24    
jbosstest/src/main/org/jboss/test/cts/interfaces/StatefulSessionHome.java
  
  Index: StatefulSessionHome.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/cts/interfaces/StatefulSessionHome.java,v
  retrieving revision 1.6
  retrieving revision 1.6.2.1
  diff -u -r1.6 -r1.6.2.1
  --- StatefulSessionHome.java  21 Jan 2001 16:50:22 -0000      1.6
  +++ StatefulSessionHome.java  5 Apr 2002 17:59:39 -0000       1.6.2.1
  @@ -1,38 +1,27 @@
  -
  -/*
  - * Copyright 1999 by dreamBean Software,
  - * All rights reserved.
  - */
   package org.jboss.test.cts.interfaces;
   
  -
  -
  -import java.rmi.*;
  -import javax.ejb.*;
  -
  +import java.rmi.RemoteException;
  +import javax.ejb.CreateException;
  +import javax.ejb.EJBHome;
   
   /**
    *
    *   @see <related>
  - *   @author $Author: osh $
  - *   @version $Revision: 1.6 $
  + *   @author $Author: starksm $
  + *   @version $Revision: 1.6.2.1 $
    */
  -
   public interface StatefulSessionHome
      extends EJBHome
   {
  +   public static final int THROW_EX_IN_AFTER_BEGIN = 1;
  +   public static final int THROW_EX_IN_BEFORE_COMPLETION = 2;
  +   public static final int THROW_EX_IN_AFTER_COMPLETION = 3;
   
  -   /**
  -    * Method create
  -    *
  -    *
  -    * @return
  -    *
  +   public StatefulSession create()
  +      throws RemoteException, CreateException;
  +   /** Create a bean that will throw a RuntimeException in the indicated
  +    SessionSynchronization method.
       */
  -
  -   public StatefulSession create ()
  +   public StatefulSession create(int ssExceptionIndex)
         throws RemoteException, CreateException;
   }
  -
  -
  -/*------ Formatted by Jindent 3.23 Basic 1.0 --- http://www.jindent.de ------*/
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to