User: simone
Date: 01/03/11 09:04:17
Modified: src/main/org/jboss/ejb/plugins
EntitySynchronizationInterceptor.java
Log:
Fixed a bug when ejbStore throws exceptions: the transaction is now marked for
rollback as the spec wants.
Revision Changes Path
1.31 +4 -3
jboss/src/main/org/jboss/ejb/plugins/EntitySynchronizationInterceptor.java
Index: EntitySynchronizationInterceptor.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/EntitySynchronizationInterceptor.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- EntitySynchronizationInterceptor.java 2000/12/22 17:29:34 1.30
+++ EntitySynchronizationInterceptor.java 2001/03/11 17:04:17 1.31
@@ -48,7 +48,7 @@
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
-* @version $Revision: 1.30 $
+* @version $Revision: 1.31 $
*/
public class EntitySynchronizationInterceptor
extends AbstractInterceptor
@@ -335,7 +335,6 @@
} catch (Exception e)
{
// Ignore
- e.printStackTrace();
}
}
@@ -346,7 +345,9 @@
// Object has been removed -- ignore
}
}
- catch (RemoteException e) {
+ // EJB 1.1 12.3.2: all exceptions from ejbStore must be marked for
rollback
+ // and the instance must be discarded
+ catch (Exception e) {
Logger.exception(e);
// Store failed -> rollback!