User: fleury
Date: 00/10/19 14:21:37
Modified: src/main/org/jboss/ejb/plugins TxInterceptorBMT.java
Log:
The TxInterceptorBMT must enforce the proper propagation of Tx. In this particular
case the MI must follow the Bean tx association, whatever that may be (null or Tx)
Revision Changes Path
1.8 +4 -1 jboss/src/main/org/jboss/ejb/plugins/TxInterceptorBMT.java
Index: TxInterceptorBMT.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/TxInterceptorBMT.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- TxInterceptorBMT.java 2000/10/08 05:30:17 1.7
+++ TxInterceptorBMT.java 2000/10/19 21:21:37 1.8
@@ -49,7 +49,7 @@
* @see <related>
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Sebastien Alborini</a>
-* @version $Revision: 1.7 $
+* @version $Revision: 1.8 $
*/
public class TxInterceptorBMT
extends AbstractInterceptor
@@ -224,6 +224,9 @@
// t2 refers to the instance transaction (spec ejb1.1, 11.6.1, p174)
Transaction t2 = mi.getEnterpriseContext().getTransaction();
+
+ // This is BMT so the transaction is dictated by the Bean, the
MethodInvocation follows
+ mi.setTransaction(t2);
//DEBUG Logger.debug("TxInterceptorBMT t2 in context" + ((t2==null) ? "null":
Integer.toString(t2.hashCode())));