[jboss-svn-commits] JBL Code SVN: r37618 - labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/examples/classes/com/arjuna/jta/distributed/example/server/impl.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Oct 19 15:33:12 EDT 2011
Author: tomjenkinson
Date: 2011-10-19 15:33:12 -0400 (Wed, 19 Oct 2011)
New Revision: 37618
Modified:
labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/examples/classes/com/arjuna/jta/distributed/example/server/impl/ProxyXAResource.java
Log:
JBTM-917 detect when the server has already rolled back the transaction
Modified: labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/examples/classes/com/arjuna/jta/distributed/example/server/impl/ProxyXAResource.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/examples/classes/com/arjuna/jta/distributed/example/server/impl/ProxyXAResource.java 2011-10-19 19:23:58 UTC (rev 37617)
+++ labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/examples/classes/com/arjuna/jta/distributed/example/server/impl/ProxyXAResource.java 2011-10-19 19:33:12 UTC (rev 37618)
@@ -187,6 +187,13 @@
System.out.println(" ProxyXAResource (" + localServerName + ":" + remoteServerName + ") XA_ROLLBACKED");
} catch (DummyRemoteException ce) {
throw new XAException(XAException.XA_RETRY);
+ } catch (XAException e) {
+ // We know the remote side must have done a JBTM-917
+ if (e.errorCode == XAException.XAER_INVAL) {
+ // We know that this means that the transaction is not known at
+ // the remote side
+ e.printStackTrace();
+ }
}
if (file != null) {
More information about the jboss-svn-commits
mailing list