User: azakkerman
Date: 02/02/03 12:18:54
Modified: src/main/org/jboss/ejb/plugins AbstractTxInterceptorBMT.java
Log:
Fix a problem with resuming null transactions (Tyrex can't do this)
Accidentally, this has helped somehow to fix a few errors in the
testsuite.
Revision Changes Path
1.7 +4 -2
jboss/src/main/org/jboss/ejb/plugins/AbstractTxInterceptorBMT.java
Index: AbstractTxInterceptorBMT.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/AbstractTxInterceptorBMT.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- AbstractTxInterceptorBMT.java 2001/12/19 05:36:53 1.6
+++ AbstractTxInterceptorBMT.java 2002/02/03 20:18:53 1.7
@@ -29,7 +29,7 @@
* A common superclass for the BMT transaction interceptors.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Ole Husgaard</a>
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
abstract class AbstractTxInterceptorBMT
extends AbstractTxInterceptor
@@ -131,7 +131,9 @@
Transaction beanTx = ctx.getTransaction();
// Resume the bean instance transaction
- tm.resume(beanTx);
+ // only if it not null, some TMs can't resume(null), e.g. Tyrex
+ if (beanTx != null)
+ tm.resume(beanTx);
// Let the MI know about our new transaction
mi.setTransaction(beanTx);
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development