User: dsundstrom
  Date: 01/07/26 14:54:13

  Modified:    src/main/org/jboss/ejb/plugins/cmp CMPStoreManager.java
                        FindEntitiesCommand.java FindEntityCommand.java
  Log:
  Changed finders to allow application exceptions to be passed back to clients
  instead of being wrapped in a FinderException.  This is required by the spec.
  
  The changes is based on patch #437132.
  
  Revision  Changes    Path
  1.3       +3 -3      jboss/src/main/org/jboss/ejb/plugins/cmp/CMPStoreManager.java
  
  Index: CMPStoreManager.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/CMPStoreManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CMPStoreManager.java      2001/07/09 23:59:58     1.2
  +++ CMPStoreManager.java      2001/07/26 21:54:13     1.3
  @@ -61,7 +61,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Joe Shevland</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Justin Forder</a>
    * @see org.jboss.ejb.EntityPersistenceStore
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */                            
   public abstract class CMPStoreManager 
      implements EntityPersistenceStore2
  @@ -172,7 +172,7 @@
      public Object findEntity(Method finderMethod,
                               Object[] args,
                               EntityEnterpriseContext ctx)
  -      throws RemoteException, FinderException
  +      throws Exception
      {
         return findEntityCommand.execute(finderMethod, args, ctx);
      }
  @@ -180,7 +180,7 @@
      public FinderResults findEntities(Method finderMethod,
                                     Object[] args,
                                     EntityEnterpriseContext ctx)
  -      throws RemoteException, FinderException
  +      throws Exception
      {
         return findEntitiesCommand.execute(finderMethod, args, ctx);
      }
  
  
  
  1.2       +2 -3      
jboss/src/main/org/jboss/ejb/plugins/cmp/FindEntitiesCommand.java
  
  Index: FindEntitiesCommand.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/FindEntitiesCommand.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FindEntitiesCommand.java  2001/06/24 03:23:13     1.1
  +++ FindEntitiesCommand.java  2001/07/26 21:54:13     1.2
  @@ -10,7 +10,6 @@
   import java.util.Collection;
   import java.lang.reflect.Method;
   import org.jboss.ejb.EntityEnterpriseContext;
  -import java.rmi.RemoteException;
   import javax.ejb.FinderException;
   import org.jboss.util.FinderResults;
   
  @@ -25,7 +24,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Dain Sundstrom</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Justin Forder</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public interface FindEntitiesCommand
   {
  @@ -34,5 +33,5 @@
      public FinderResults execute(Method finderMethod, 
                                Object[] args, 
                                EntityEnterpriseContext ctx)
  -      throws RemoteException, FinderException;
  +      throws Exception;
   }
  
  
  
  1.2       +2 -3      jboss/src/main/org/jboss/ejb/plugins/cmp/FindEntityCommand.java
  
  Index: FindEntityCommand.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/FindEntityCommand.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FindEntityCommand.java    2001/06/24 03:23:13     1.1
  +++ FindEntityCommand.java    2001/07/26 21:54:13     1.2
  @@ -9,7 +9,6 @@
   
   import java.lang.reflect.Method;
   import org.jboss.ejb.EntityEnterpriseContext;
  -import java.rmi.RemoteException;
   import javax.ejb.FinderException;
   
   /**
  @@ -23,7 +22,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Dain Sundstrom</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Justin Forder</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public interface FindEntityCommand
   {
  @@ -32,5 +31,5 @@
      public Object execute(Method finderMethod, 
                            Object[] args, 
                            EntityEnterpriseContext ctx)
  -      throws RemoteException, FinderException;
  +      throws Exception;
   }
  
  
  

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

Reply via email to