[jboss-cvs] JBossAS SVN: r57115 - trunk/connector/src/resources/stylesheets

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Sep 24 03:09:55 EDT 2006


Author: weston.price at jboss.com
Date: 2006-09-24 03:09:54 -0400 (Sun, 24 Sep 2006)
New Revision: 57115

Modified:
   trunk/connector/src/resources/stylesheets/ConnectionFactoryTemplate.xsl
Log:
[JBAS-3183] [JBAS-1405] [JBAS-397] Continued work on XAResourceWrapper and JcaXid. Moving
previous handling of Xid padding and isSameRM from XidFactory and
BaseWrapperManagedConnectionFactory respectively. Made XAResoruceWrapper
configurable option from XSLT.

Modified: trunk/connector/src/resources/stylesheets/ConnectionFactoryTemplate.xsl
===================================================================
--- trunk/connector/src/resources/stylesheets/ConnectionFactoryTemplate.xsl	2006-09-24 07:03:21 UTC (rev 57114)
+++ trunk/connector/src/resources/stylesheets/ConnectionFactoryTemplate.xsl	2006-09-24 07:09:54 UTC (rev 57115)
@@ -37,7 +37,20 @@
           <attribute name="LocalTransactions">true</attribute>
         </xsl:otherwise>
       </xsl:choose>
-
+      
+      <xsl:choose>
+        <xsl:when test="wrap-xa-resource">
+          <attribute name="WrapXAResource"><xsl:value-of select="normalize-space(wrap-xa-resource)"/></attribute>
+        </xsl:when>
+        <xsl:otherwise>
+          <attribute name="WrapXAResource">false</attribute>
+        </xsl:otherwise>
+      </xsl:choose>
+      
+      <xsl:if test="isSameRM-override-value">
+        <config-property name="IsSameRMOverrideValue" type="java.lang.Boolean"><xsl:value-of select="normalize-space(isSameRM-override-value)"/></config-property>
+      </xsl:if>
+      
       <xsl:if test="xa-resource-timeout">
          <attribute name="XAResourceTransactionTimeout"><xsl:value-of select="normalize-space(xa-resource-timeout)"/></attribute>
       </xsl:if>
@@ -146,6 +159,19 @@
         </xsl:otherwise>
       </xsl:choose>
 
+      <xsl:if test="isSameRM-override-value">
+        <config-property name="IsSameRMOverrideValue" type="java.lang.Boolean"><xsl:value-of select="normalize-space(isSameRM-override-value)"/></config-property>
+      </xsl:if>
+      
+      <xsl:choose>
+        <xsl:when test="wrap-xa-resource">
+          <attribute name="WrapXAResource"><xsl:value-of select="normalize-space(wrap-xa-resource)"/></attribute>
+        </xsl:when>
+        <xsl:otherwise>
+          <attribute name="WrapXAResource">false</attribute>
+        </xsl:otherwise>
+      </xsl:choose>
+      
       <xsl:if test="xa-resource-timeout">
          <attribute name="XAResourceTransactionTimeout"><xsl:value-of select="normalize-space(xa-resource-timeout)"/></attribute>
       </xsl:if>
@@ -264,11 +290,12 @@
               <config-property name="XADataSourceProperties" type="java.lang.String">
                 <xsl:apply-templates select="xa-datasource-property"/>
               </config-property>
-
+              
+              <!-- remove for new XA handling
               <xsl:if test="isSameRM-override-value">
                 <config-property name="IsSameRMOverrideValue" type="java.lang.Boolean"><xsl:value-of select="normalize-space(isSameRM-override-value)"/></config-property>
               </xsl:if>
-
+              -->
               <xsl:call-template name="wrapper-common-properties"/>
 
             </properties>




More information about the jboss-cvs-commits mailing list