commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r416498 - in /jakarta/commons/proper/transaction/trunk: RELEASE-NOTES.txt src/java/org/apache/commons/transaction/util/xa/AbstractXAResource.java
Date Thu, 22 Jun 2006 23:11:04 GMT
Author: joerg
Date: Thu Jun 22 16:11:04 2006
New Revision: 416498

URL: http://svn.apache.org/viewvc?rev=416498&view=rev
Log:
Fixed issue with AbstractXAResource:
resources did not get released when prepare(..) returns XA_RDONLY as no commit(..) is triggered
by the TransactionManager explicitely.

Modified:
    jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt
    jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/util/xa/AbstractXAResource.java

Modified: jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt?rev=416498&r1=416497&r2=416498&view=diff
==============================================================================
--- jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt (original)
+++ jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt Thu Jun 22 16:11:04 2006
@@ -37,6 +37,8 @@
   OptimisticMapWrapper.copyChangesToConcurrentTransactions() for preventing ConcurrentModificationException.
 - Fixed bugzilla issue 37379. The construction of the transaction specific path is now done
via a TransactionIdToPathMapper.
 - Fixed issue with deleteResource(..) and createResource(..) of FileResourceManager seen
as read-only operations.
+- Fixed issue with AbstractXAResource. Resources did not get released when prepare(..) returns
XA_RDONLY as no
+  commit(..) is triggered by the TransactionManager explicitely.
 
 KNOWN ISSUES
 ------------

Modified: jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/util/xa/AbstractXAResource.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/util/xa/AbstractXAResource.java?rev=416498&r1=416497&r2=416498&view=diff
==============================================================================
--- jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/util/xa/AbstractXAResource.java
(original)
+++ jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/util/xa/AbstractXAResource.java
Thu Jun 22 16:11:04 2006
@@ -125,6 +125,11 @@
         	
         int result = ts.prepare();
         ts.setStatus(STATUS_PREPARED);
+        
+        if (result == XA_RDONLY) {
+            commit(xid, false);
+        }
+        
         return result;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message