[jboss-svn-commits] JBL Code SVN: r6924 - in labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna: webservices/wsat wst wst/messaging/engines wst/stub
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Oct 19 13:34:07 EDT 2006
Author: kevin.conner at jboss.com
Date: 2006-10-19 13:34:02 -0400 (Thu, 19 Oct 2006)
New Revision: 6924
Added:
labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/Participant.java
Removed:
labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/webservices/wsat/Participant.java
Modified:
labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/Durable2PCParticipant.java
labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/Volatile2PCParticipant.java
labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/messaging/engines/ParticipantEngine.java
labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/stub/ParticipantStub.java
Log:
Refactor participant to share with wsat11: JBTM-153
Deleted: labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/webservices/wsat/Participant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/webservices/wsat/Participant.java 2006-10-19 17:33:53 UTC (rev 6923)
+++ labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/webservices/wsat/Participant.java 2006-10-19 17:34:02 UTC (rev 6924)
@@ -1,75 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. All rights reserved.
- * 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.
- */
-package com.arjuna.webservices.wsat;
-
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.Vote;
-import com.arjuna.wst.WrongStateException;
-
-/**
- * The base Participant.
- */
-public interface Participant
-{
-
- /**
- * Perform any work necessary to allow it to either commit or rollback
- * the work performed by the Web service under the scope of the
- * transaction. The implementation is free to do whatever it needs to in
- * order to fulfill the implicit contract between it and the coordinator.
- *
- * @return an indication of whether it can prepare or not.
- * @see com.arjuna.wst.Vote
- */
-
- public Vote prepare () throws WrongStateException, SystemException;
-
- /**
- * The participant should make permanent the work that it controls.
- */
-
- public void commit () throws WrongStateException, SystemException;
-
- /**
- * The participant should undo the work that it controls. The participant
- * will then return an indication of whether or not it succeeded.
- */
-
- public void rollback () throws WrongStateException, SystemException;
-
- /**
- * During recovery the participant can enquire as to the status of the
- * transaction it was registered with. If that transaction is no longer
- * available (has rolled back) then this operation will be invoked by the
- * coordination service.
- */
-
- public void unknown () throws SystemException;
-
- /**
- * During recovery the participant can enquire as to the status of the
- * transaction it was registered with. If an error occurs (e.g., the
- * transaction service is unavailable) then this operation will be invoked.
- */
-
- void error () throws SystemException;
-
-}
Modified: labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/Durable2PCParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/Durable2PCParticipant.java 2006-10-19 17:33:53 UTC (rev 6923)
+++ labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/Durable2PCParticipant.java 2006-10-19 17:34:02 UTC (rev 6924)
@@ -31,8 +31,6 @@
package com.arjuna.wst;
-import com.arjuna.webservices.wsat.Participant;
-
/**
* The Durable2PCParticipant. Unlike all traditional TP implementations, the
* one-phase commit optimisation is not supported. It was in the 1.0
Copied: labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/Participant.java (from rev 5952, labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/webservices/wsat/Participant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/webservices/wsat/Participant.java 2006-08-20 02:03:30 UTC (rev 5952)
+++ labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/Participant.java 2006-10-19 17:34:02 UTC (rev 6924)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * 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.
+ */
+package com.arjuna.wst;
+
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.Vote;
+import com.arjuna.wst.WrongStateException;
+
+/**
+ * The base Participant.
+ */
+public interface Participant
+{
+
+ /**
+ * Perform any work necessary to allow it to either commit or rollback
+ * the work performed by the Web service under the scope of the
+ * transaction. The implementation is free to do whatever it needs to in
+ * order to fulfill the implicit contract between it and the coordinator.
+ *
+ * @return an indication of whether it can prepare or not.
+ * @see com.arjuna.wst.Vote
+ */
+
+ public Vote prepare () throws WrongStateException, SystemException;
+
+ /**
+ * The participant should make permanent the work that it controls.
+ */
+
+ public void commit () throws WrongStateException, SystemException;
+
+ /**
+ * The participant should undo the work that it controls. The participant
+ * will then return an indication of whether or not it succeeded.
+ */
+
+ public void rollback () throws WrongStateException, SystemException;
+
+ /**
+ * During recovery the participant can enquire as to the status of the
+ * transaction it was registered with. If that transaction is no longer
+ * available (has rolled back) then this operation will be invoked by the
+ * coordination service.
+ */
+
+ public void unknown () throws SystemException;
+
+ /**
+ * During recovery the participant can enquire as to the status of the
+ * transaction it was registered with. If an error occurs (e.g., the
+ * transaction service is unavailable) then this operation will be invoked.
+ */
+
+ void error () throws SystemException;
+
+}
Modified: labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/Volatile2PCParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/Volatile2PCParticipant.java 2006-10-19 17:33:53 UTC (rev 6923)
+++ labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/Volatile2PCParticipant.java 2006-10-19 17:34:02 UTC (rev 6924)
@@ -31,8 +31,6 @@
package com.arjuna.wst;
-import com.arjuna.webservices.wsat.Participant;
-
/**
* The Volatile2PCParticipant. This is the equivalent of the traditional
* synchronization protocol (the old PhaseZero and OutcomeNotification
Modified: labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/messaging/engines/ParticipantEngine.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/messaging/engines/ParticipantEngine.java 2006-10-19 17:33:53 UTC (rev 6923)
+++ labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/messaging/engines/ParticipantEngine.java 2006-10-19 17:34:02 UTC (rev 6924)
@@ -32,13 +32,13 @@
import com.arjuna.webservices.wsarj.ArjunaContext;
import com.arjuna.webservices.wsarj.InstanceIdentifier;
import com.arjuna.webservices.wsat.NotificationType;
-import com.arjuna.webservices.wsat.Participant;
import com.arjuna.webservices.wsat.ParticipantInboundEvents;
import com.arjuna.webservices.wsat.State;
import com.arjuna.webservices.wsat.client.CoordinatorClient;
import com.arjuna.webservices.wsat.processors.ParticipantProcessor;
import com.arjuna.wsc.messaging.MessageId;
import com.arjuna.wst.Aborted;
+import com.arjuna.wst.Participant;
import com.arjuna.wst.Prepared;
import com.arjuna.wst.ReadOnly;
import com.arjuna.wst.Vote;
Modified: labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/stub/ParticipantStub.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/stub/ParticipantStub.java 2006-10-19 17:33:53 UTC (rev 6923)
+++ labs/jbosstm/trunk/XTS/WS-T/dev/src/com/arjuna/wst/stub/ParticipantStub.java 2006-10-19 17:34:02 UTC (rev 6924)
@@ -41,9 +41,9 @@
import com.arjuna.webservices.soap.SoapUtils;
import com.arjuna.webservices.util.StreamHelper;
import com.arjuna.webservices.wsaddr.EndpointReferenceType;
-import com.arjuna.webservices.wsat.Participant;
import com.arjuna.webservices.wsat.State;
import com.arjuna.wst.Aborted;
+import com.arjuna.wst.Participant;
import com.arjuna.wst.PersistableParticipant;
import com.arjuna.wst.Prepared;
import com.arjuna.wst.ReadOnly;
More information about the jboss-svn-commits
mailing list