User: fleury
Date: 00/09/26 11:35:48
Modified: src/main/org/jboss/ejb StatefulSessionContainer.java
Log:
Hook the context right before the invocation
Revision Changes Path
1.16 +4 -1 jboss/src/main/org/jboss/ejb/StatefulSessionContainer.java
Index: StatefulSessionContainer.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/StatefulSessionContainer.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- StatefulSessionContainer.java 2000/08/18 03:20:54 1.15
+++ StatefulSessionContainer.java 2000/09/26 18:35:47 1.16
@@ -31,7 +31,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.15 $
+ * @version $Revision: 1.16 $
*/
public class StatefulSessionContainer
extends Container
@@ -527,6 +527,9 @@
// Select instance to invoke (container or bean)
if (m.getDeclaringClass().equals(StatefulSessionContainer.this.getClass()))
{
+ //wire the transaction on the context, this is how the
instance remember the tx
+ if (mi.getEnterpriseContext().getTransaction() == null)
mi.getEnterpriseContext().setTransaction(mi.getTransaction());
+
// Invoke and handle exceptions
try
{