[jboss-svn-commits] JBL Code SVN: r20288 - in labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS: demo/src/com/arjuna/xts/nightout/services/Restaurant and 2 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Jun 4 06:17:35 EDT 2008


Author: adinn
Date: 2008-06-04 06:17:35 -0400 (Wed, 04 Jun 2008)
New Revision: 20288

Modified:
   labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/WS-T/dev/src/com/arjuna/wst/BusinessAgreementWithParticipantCompletionParticipant.java
   labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/demo/src/com/arjuna/xts/nightout/services/Restaurant/RestaurantParticipantBA.java
   labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/demo/src/com/arjuna/xts/nightout/services/Taxi/TaxiParticipantBA.java
   labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/demo/src/com/arjuna/xts/nightout/services/Theatre/TheatreParticipantBA.java
Log:
fix for JBTM-370

Modified: labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/WS-T/dev/src/com/arjuna/wst/BusinessAgreementWithParticipantCompletionParticipant.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/WS-T/dev/src/com/arjuna/wst/BusinessAgreementWithParticipantCompletionParticipant.java	2008-06-04 10:07:19 UTC (rev 20287)
+++ labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/WS-T/dev/src/com/arjuna/wst/BusinessAgreementWithParticipantCompletionParticipant.java	2008-06-04 10:17:35 UTC (rev 20288)
@@ -53,6 +53,14 @@
      * The transaction has cancelled. The participant previously
      * informed the coordinator that it had finished work but could compensate
      * later if required, so it is now requested to do so.
+     * @throws FaultedException if the participant was unable to
+     * perform the required compensation action because of an
+     * unrecoverable error. The coordinator is notified of this fault
+     * and as a result will stop resending compensation requests.
+     * @throws SystemException if the participant was unable to
+     * perform the required compensation action because of a transient
+     * fault. The coordinator is not notified of this fault so it
+     * will retry the compensate request after a suitable timeout.
      */
 
     public void compensate () throws FaultedException, WrongStateException, SystemException;

Modified: labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/demo/src/com/arjuna/xts/nightout/services/Restaurant/RestaurantParticipantBA.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/demo/src/com/arjuna/xts/nightout/services/Restaurant/RestaurantParticipantBA.java	2008-06-04 10:07:19 UTC (rev 20287)
+++ labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/demo/src/com/arjuna/xts/nightout/services/Restaurant/RestaurantParticipantBA.java	2008-06-04 10:17:35 UTC (rev 20288)
@@ -107,7 +107,7 @@
      * @throws SystemException if unable to perform the compensating transaction.
      */
 
-    public void compensate() throws WrongStateException, SystemException
+    public void compensate() throws FaultedException, WrongStateException, SystemException
     {
         System.out.println("RestaurantParticipantBA.compensate");
 
@@ -144,7 +144,7 @@
             {
                 restaurantView.addMessage("id:" + txID + " Compensation failed. Throwing SystemException\n");
                 restaurantView.updateFields();
-                throw new SystemException("Compensating transaction failed.");
+                throw new FaultedException("Compensating transaction failed.");
             }
         }
     }

Modified: labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/demo/src/com/arjuna/xts/nightout/services/Taxi/TaxiParticipantBA.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/demo/src/com/arjuna/xts/nightout/services/Taxi/TaxiParticipantBA.java	2008-06-04 10:07:19 UTC (rev 20287)
+++ labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/demo/src/com/arjuna/xts/nightout/services/Taxi/TaxiParticipantBA.java	2008-06-04 10:17:35 UTC (rev 20288)
@@ -102,7 +102,7 @@
      * @throws SystemException always, because this implementation does not support compensation.
      */
 
-    public void compensate() throws WrongStateException, SystemException
+    public void compensate() throws FaultedException, WrongStateException, SystemException
     {
         System.out.println("TaxiParticipantBA.compensate");
 
@@ -115,7 +115,7 @@
         taxiView.addMessage("Compensation not supported by ths implementation!");
         taxiView.updateFields();
 
-        throw new SystemException("Compensation not supported!");
+        throw new FaultedException("Compensation not supported!");
     }
 
     public String status () throws SystemException

Modified: labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/demo/src/com/arjuna/xts/nightout/services/Theatre/TheatreParticipantBA.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/demo/src/com/arjuna/xts/nightout/services/Theatre/TheatreParticipantBA.java	2008-06-04 10:07:19 UTC (rev 20287)
+++ labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/XTS/demo/src/com/arjuna/xts/nightout/services/Theatre/TheatreParticipantBA.java	2008-06-04 10:17:35 UTC (rev 20288)
@@ -108,7 +108,7 @@
      * @throws SystemException if unable to perform the compensating transaction.
      */
 
-    public void compensate() throws WrongStateException, SystemException
+    public void compensate() throws FaultedException, WrongStateException, SystemException
     {
         System.out.println("TheatreParticipantBA.compensate");
 
@@ -145,7 +145,7 @@
             {
                 theatreView.addMessage("id:" + txID + " Compensation failed. Throwing SystemException\n");
                 theatreView.updateFields();
-                throw new SystemException("Compensating transaction failed.");
+                throw new FaultedException("Compensating transaction failed.");
             }
         }
     }




More information about the jboss-svn-commits mailing list