djencks 2005/02/01 21:40:58
Modified: modules/core/src/java/org/openejb/transaction
BeanPolicy.java
Log:
Warn, don't error when a sfsb BMT method exits with an active tx
Revision Changes Path
1.6 +3 -2
openejb/modules/core/src/java/org/openejb/transaction/BeanPolicy.java
Index: BeanPolicy.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/transaction/BeanPolicy.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- BeanPolicy.java 5 Oct 2004 07:04:03 -0000 1.5
+++ BeanPolicy.java 2 Feb 2005 02:40:58 -0000 1.6
@@ -118,7 +118,8 @@
try {
InvocationResult result =
interceptor.invoke(ejbInvocation);
if (beanContext !=
transactionContextManager.getContext()) {
- throw new UncommittedTransactionException("Support
for transactions held between invocations is not supported");
+// throw new UncommittedTransactionException("Support
for transactions held between invocations is not supported");
+ new UncommittedTransactionException("Support for
transactions held between invocations is not supported").printStackTrace();
}
beanContext.commit();
return result;