Author: cbredesen
Date: 2008-03-06 12:04:50 -0500 (Thu, 06 Mar 2008)
New Revision: 14395
Modified:
core/trunk/core/src/main/java/org/hibernate/transaction/WebSphereExtendedJTATransactionLookup.java
Log:
HHH-3111 fixed TM.getStatus() to delegate to getTransaction().getStatus(), or return
STATUS_NO_TRANSACTION
Modified:
core/trunk/core/src/main/java/org/hibernate/transaction/WebSphereExtendedJTATransactionLookup.java
===================================================================
---
core/trunk/core/src/main/java/org/hibernate/transaction/WebSphereExtendedJTATransactionLookup.java 2008-03-06
17:03:03 UTC (rev 14394)
+++
core/trunk/core/src/main/java/org/hibernate/transaction/WebSphereExtendedJTATransactionLookup.java 2008-03-06
17:04:50 UTC (rev 14395)
@@ -83,8 +83,8 @@
throw new UnsupportedOperationException();
}
- public int getStatus() throws UnsupportedOperationException {
- throw new UnsupportedOperationException();
+ public int getStatus() throws SystemException {
+ return getTransaction() == null ? Status.STATUS_NO_TRANSACTION :
getTransaction().getStatus();
}
public Transaction getTransaction() throws SystemException {
Show replies by date