[jboss-svn-commits] JBL Code SVN: r5832 - in labs/jbosstm/trunk: ArjunaJTA/docs/user_guide ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/resources/arjunacore ArjunaJTS ArjunaJTS/jtax/classes/com/arjuna/ats/internal/jta/resources/jts/orbspecific

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sun Aug 13 03:29:14 EDT 2006


Author: mark.little at jboss.com
Date: 2006-08-13 03:29:06 -0400 (Sun, 13 Aug 2006)
New Revision: 5832

Modified:
   labs/jbosstm/trunk/ArjunaJTA/docs/user_guide/ProgrammersGuide.doc
   labs/jbosstm/trunk/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/resources/arjunacore/XAResourceRecord.java
   labs/jbosstm/trunk/ArjunaJTS/INSTALL
   labs/jbosstm/trunk/ArjunaJTS/jtax/classes/com/arjuna/ats/internal/jta/resources/jts/orbspecific/XAResourceRecord.java
Log:
http://jira.jboss.com/jira/browse/JBTM-120

Modified: labs/jbosstm/trunk/ArjunaJTA/docs/user_guide/ProgrammersGuide.doc
===================================================================
(Binary files differ)

Modified: labs/jbosstm/trunk/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/resources/arjunacore/XAResourceRecord.java
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/resources/arjunacore/XAResourceRecord.java	2006-08-12 18:25:42 UTC (rev 5831)
+++ labs/jbosstm/trunk/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/resources/arjunacore/XAResourceRecord.java	2006-08-13 07:29:06 UTC (rev 5832)
@@ -1093,8 +1093,10 @@
 
 		if (_theTransaction != null)
 		{
-			if (_theTransaction.getXAResourceState(_theXAResource) != TxInfo.ASSOCIATED)
+			if (_theTransaction.getXAResourceState(_theXAResource) == TxInfo.NOT_ASSOCIATED)
 			{
+				// end has been called so we don't need to do it again!
+				
 				doEnd = false;
 			}
 		}
@@ -1107,15 +1109,10 @@
 	protected XAResource _theXAResource;
 
 	private RecoverableXAConnection _recoveryObject;
-
 	private Xid _tranID;
-
 	private boolean _prepared;
-
 	private boolean _valid;
-
 	private int _heuristic;
-
 	private TransactionImple _theTransaction;
 
 	private static boolean _rollbackOptimization = false;

Modified: labs/jbosstm/trunk/ArjunaJTS/INSTALL
===================================================================
--- labs/jbosstm/trunk/ArjunaJTS/INSTALL	2006-08-12 18:25:42 UTC (rev 5831)
+++ labs/jbosstm/trunk/ArjunaJTS/INSTALL	2006-08-13 07:29:06 UTC (rev 5832)
@@ -68,6 +68,39 @@
 The application server will now be configured to use the JBossJTS transaction
 manager instead of the JBoss Transaction Manager.
 
+For the Web Services Transactions component (also known as the XML Transaction Service, or XTS),
+in order to create a stand-alone coordinator:
+
+(1) create a separate installation of your application server to the one you
+will use for your clients/services.
+
+(2) edit the build.xml to point to this installation.
+
+You need to set hostname, port and deploy.dir parameters to those for the
+application server used for the stand-alone coordinator.
+
+(3) run ant with the deploy target that matches your application server
+(deploy-webmethods, deploy-weblogic or deploy-jboss).
+
+(4) when running clients and services, edit the wstx.xml file in their
+deployment to add
+
+	    <property
+	    name="com.arjuna.mw.wst.coordinatorURL"
+	    value="http://@hostname@:@port@/xts/soap/ActivationCoordinator"/>
+
+	    <property
+	    name="com.arjuna.mw.wst.ba.terminatorURL"
+	    value="http://@hostname@:@port@/xts/soap/BusinessActivityTerminatorParticipant"/>
+
+where hostname and port are replaced with the appropriate values.
+
+(5) make sure you start  your coordinator deployment before any clients or
+services that may want to use it.
+
+We recommend that you run through the XTS trailmap in order to understand how to build and use
+transaction-aware Web Services, before deciding whether or not to use a stand-alone coordinator service.
+
 Note, the following issues exist with the trailmap shipped with JBossTS (http://www.jboss.org/index.html?module=bb&op=viewtopic&t=82879):
 
 (i) it talks about ArjunaTS and the arjunats-properties.xml file. This was the old name for JBossTS. The
@@ -77,3 +110,6 @@
 the recovery manager: java com.arjuna.ats.arjuna.recovery.RecoveryManager -test
 
 (iii) you will need a jacorb.properties file to run the distributed JTS tests.
+
+(iv) the XTS trailmap talks about webMethods deployments. Obviously it is intended to be deployed
+with JBossAS 4.0.3SP1 as well!
\ No newline at end of file

Modified: labs/jbosstm/trunk/ArjunaJTS/jtax/classes/com/arjuna/ats/internal/jta/resources/jts/orbspecific/XAResourceRecord.java
===================================================================
--- labs/jbosstm/trunk/ArjunaJTS/jtax/classes/com/arjuna/ats/internal/jta/resources/jts/orbspecific/XAResourceRecord.java	2006-08-12 18:25:42 UTC (rev 5831)
+++ labs/jbosstm/trunk/ArjunaJTS/jtax/classes/com/arjuna/ats/internal/jta/resources/jts/orbspecific/XAResourceRecord.java	2006-08-13 07:29:06 UTC (rev 5832)
@@ -1493,8 +1493,10 @@
 
 		if (_theTransaction != null)
 		{
-			if (_theTransaction.getXAResourceState(_theXAResource) != TxInfo.ASSOCIATED)
+			if (_theTransaction.getXAResourceState(_theXAResource) == TxInfo.NOT_ASSOCIATED)
 			{
+				// end has been called so we don't need to do it again!
+				
 				doEnd = false;
 			}
 		}




More information about the jboss-svn-commits mailing list