diff --git a/adapters/src/main/java/org/jboss/jca/adapters/jdbc/xa/XAManagedConnection.java b/adapters/src/main/java/org/jboss/jca/adapters/jdbc/xa/XAManagedConnection.java
index <HASH>..<HASH> 100644
--- a/adapters/src/main/java/org/jboss/jca/adapters/jdbc/xa/XAManagedConnection.java
+++ b/adapters/src/main/java/org/jboss/jca/adapters/jdbc/xa/XAManagedConnection.java
@@ -397,7 +397,7 @@ public class XAManagedConnection extends BaseWrapperManagedConnection implements
    
    private boolean isFailedXA(int errorCode)
    {
-      return !(errorCode >= XAException.XA_RBBASE && errorCode < XAException.XA_RBEND);      
+      return !(errorCode >= XAException.XA_RBBASE && errorCode <= XAException.XA_RBEND);
    }
 
    /**
[JBJCA-<I>] XARB_END should be included in check