[jboss-svn-commits] JBL Code SVN: r20286 - in labs/jbosstm/trunk/XTS/demo: src/com/jboss/jbosstm/xts/demo/services/taxi and 4 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Jun 4 05:09:57 EDT 2008
Author: adinn
Date: 2008-06-04 05:09:57 -0400 (Wed, 04 Jun 2008)
New Revision: 20286
Modified:
labs/jbosstm/trunk/XTS/demo/src/com/jboss/jbosstm/xts/demo/services/restaurant/RestaurantParticipantBA.java
labs/jbosstm/trunk/XTS/demo/src/com/jboss/jbosstm/xts/demo/services/taxi/TaxiParticipantBA.java
labs/jbosstm/trunk/XTS/demo/src/com/jboss/jbosstm/xts/demo/services/theatre/TheatreParticipantBA.java
labs/jbosstm/trunk/XTS/demo/srcrpc/com/arjuna/xts/nightout/services/Restaurant/RestaurantParticipantBA.java
labs/jbosstm/trunk/XTS/demo/srcrpc/com/arjuna/xts/nightout/services/Taxi/TaxiParticipantBA.java
labs/jbosstm/trunk/XTS/demo/srcrpc/com/arjuna/xts/nightout/services/Theatre/TheatreParticipantBA.java
Log:
fix for JBTM-370
Modified: labs/jbosstm/trunk/XTS/demo/src/com/jboss/jbosstm/xts/demo/services/restaurant/RestaurantParticipantBA.java
===================================================================
--- labs/jbosstm/trunk/XTS/demo/src/com/jboss/jbosstm/xts/demo/services/restaurant/RestaurantParticipantBA.java 2008-06-04 08:54:49 UTC (rev 20285)
+++ labs/jbosstm/trunk/XTS/demo/src/com/jboss/jbosstm/xts/demo/services/restaurant/RestaurantParticipantBA.java 2008-06-04 09:09:57 UTC (rev 20286)
@@ -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/trunk/XTS/demo/src/com/jboss/jbosstm/xts/demo/services/taxi/TaxiParticipantBA.java
===================================================================
--- labs/jbosstm/trunk/XTS/demo/src/com/jboss/jbosstm/xts/demo/services/taxi/TaxiParticipantBA.java 2008-06-04 08:54:49 UTC (rev 20285)
+++ labs/jbosstm/trunk/XTS/demo/src/com/jboss/jbosstm/xts/demo/services/taxi/TaxiParticipantBA.java 2008-06-04 09:09:57 UTC (rev 20286)
@@ -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/trunk/XTS/demo/src/com/jboss/jbosstm/xts/demo/services/theatre/TheatreParticipantBA.java
===================================================================
--- labs/jbosstm/trunk/XTS/demo/src/com/jboss/jbosstm/xts/demo/services/theatre/TheatreParticipantBA.java 2008-06-04 08:54:49 UTC (rev 20285)
+++ labs/jbosstm/trunk/XTS/demo/src/com/jboss/jbosstm/xts/demo/services/theatre/TheatreParticipantBA.java 2008-06-04 09:09:57 UTC (rev 20286)
@@ -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.");
}
}
}
Modified: labs/jbosstm/trunk/XTS/demo/srcrpc/com/arjuna/xts/nightout/services/Restaurant/RestaurantParticipantBA.java
===================================================================
--- labs/jbosstm/trunk/XTS/demo/srcrpc/com/arjuna/xts/nightout/services/Restaurant/RestaurantParticipantBA.java 2008-06-04 08:54:49 UTC (rev 20285)
+++ labs/jbosstm/trunk/XTS/demo/srcrpc/com/arjuna/xts/nightout/services/Restaurant/RestaurantParticipantBA.java 2008-06-04 09:09:57 UTC (rev 20286)
@@ -1,24 +1,24 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. See the GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt in the distribution for a full listing
+ * of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU General Public License, v. 2.0.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License,
+ * v. 2.0 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
* RestaurantParticipantBA.java
*
* Copyright (c) 2004 Arjuna Technologies Ltd.
@@ -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/trunk/XTS/demo/srcrpc/com/arjuna/xts/nightout/services/Taxi/TaxiParticipantBA.java
===================================================================
--- labs/jbosstm/trunk/XTS/demo/srcrpc/com/arjuna/xts/nightout/services/Taxi/TaxiParticipantBA.java 2008-06-04 08:54:49 UTC (rev 20285)
+++ labs/jbosstm/trunk/XTS/demo/srcrpc/com/arjuna/xts/nightout/services/Taxi/TaxiParticipantBA.java 2008-06-04 09:09:57 UTC (rev 20286)
@@ -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/trunk/XTS/demo/srcrpc/com/arjuna/xts/nightout/services/Theatre/TheatreParticipantBA.java
===================================================================
--- labs/jbosstm/trunk/XTS/demo/srcrpc/com/arjuna/xts/nightout/services/Theatre/TheatreParticipantBA.java 2008-06-04 08:54:49 UTC (rev 20285)
+++ labs/jbosstm/trunk/XTS/demo/srcrpc/com/arjuna/xts/nightout/services/Theatre/TheatreParticipantBA.java 2008-06-04 09:09:57 UTC (rev 20286)
@@ -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