[prev in list] [next in list] [prev in thread] [next in thread]
List: openejb-cvs
Subject: svn commit: r643213 -
From: djencks () apache ! org
Date: 2008-03-31 23:51:19
Message-ID: 20080331235120.341661A9832 () eris ! apache ! org
[Download RAW message or body]
Author: djencks
Date: Mon Mar 31 16:51:15 2008
New Revision: 643213
URL: http://svn.apache.org/viewvc?rev=643213&view=rev
Log:
OPENEJB-782 Further refinements on delivering the apropriate exception to the client \
on heuristic commit exceptions
Modified:
openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionPolicy.java
Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionPolicy.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/ma \
in/java/org/apache/openejb/core/transaction/TransactionPolicy.java?rev=643213&r1=643212&r2=643213&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionPolicy.java \
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionPolicy.java \
Mon Mar 31 16:51:15 2008 @@ -154,12 +154,12 @@
} catch (HeuristicMixedException e) {
txLogger.info("A heuristic decision was made, some relevant updates have \
been committed while others have been rolled back: " + \
e.getMessage());
- throw new EJBException(e);
+ throw new ApplicationException(new EJBException(e));
} catch (HeuristicRollbackException e) {
txLogger.info("A heuristic decision was made while commiting the \
transaction, some relevant updates have been rolled back: " + \
e.getMessage());
- throw new EJBException(e);
+ throw new ApplicationException(new EJBException(e));
} catch (SecurityException e) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic