Author: cbredesen
Date: 2008-03-06 12:03:03 -0500 (Thu, 06 Mar 2008)
New Revision: 14394
Modified:
core/branches/Branch_3_2/src/org/hibernate/transaction/WebSphereExtendedJTATransactionLookup.java
Log:
HHH-3111 fixed TM.getStatus() to delegate to getTransaction().getStatus(), or return
STATUS_NO_TRANSACTION
Modified:
core/branches/Branch_3_2/src/org/hibernate/transaction/WebSphereExtendedJTATransactionLookup.java
===================================================================
---
core/branches/Branch_3_2/src/org/hibernate/transaction/WebSphereExtendedJTATransactionLookup.java 2008-03-06
16:50:07 UTC (rev 14393)
+++
core/branches/Branch_3_2/src/org/hibernate/transaction/WebSphereExtendedJTATransactionLookup.java 2008-03-06
17:03:03 UTC (rev 14394)
@@ -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