You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2007/03/08 12:05:56 UTC

svn commit: r516009 - /db/derby/code/trunk/java/client/org/apache/derby/client/net/NetXAResource.java

Author: kahatlen
Date: Thu Mar  8 03:05:52 2007
New Revision: 516009

URL: http://svn.apache.org/viewvc?view=rev&rev=516009
Log:
DERBY-2406: Add comment explaining the setting of XA state

Patch contributed by Julius Stroffek.

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/net/NetXAResource.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/net/NetXAResource.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/net/NetXAResource.java?view=diff&rev=516009&r1=516008&r2=516009
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/net/NetXAResource.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/net/NetXAResource.java Thu Mar  8 03:05:52 2007
@@ -246,6 +246,10 @@
             conn_.pendingEndXACallinfoOffset_ = -1; // indicate no pending callinfo
         }
         if (rc != XAResource.XA_OK) {
+            // The corresponding XA connection association state
+            // is changed by setXaStateForXAException inside the call
+            // to throwXAException according the error code of the XAException
+            // to be thrown.
             throwXAException(rc, false);
         }else {
         	conn_.setXAState(Connection.XA_T0_NOT_ASSOCIATED);