[jboss-cvs] JBossAS SVN: r59881 - branches/Branch_4_2/connector/src/resources/stylesheets.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Jan 20 15:55:04 EST 2007
Author: weston.price at jboss.com
Date: 2007-01-20 15:55:04 -0500 (Sat, 20 Jan 2007)
New Revision: 59881
Modified:
branches/Branch_4_2/connector/src/resources/stylesheets/ConnectionFactoryTemplate.xsl
Log:
[JBAS-3851] Added fast fail property to allow connection attempt
to fail at first attempt rather than evaluate the entire pool.
This is performance optimization and can be addressed by other means
though this is the most 'direct' route.
Modified: branches/Branch_4_2/connector/src/resources/stylesheets/ConnectionFactoryTemplate.xsl
===================================================================
--- branches/Branch_4_2/connector/src/resources/stylesheets/ConnectionFactoryTemplate.xsl 2007-01-20 20:54:17 UTC (rev 59880)
+++ branches/Branch_4_2/connector/src/resources/stylesheets/ConnectionFactoryTemplate.xsl 2007-01-20 20:55:04 UTC (rev 59881)
@@ -418,8 +418,15 @@
<attribute name="PreFill">False</attribute>
</xsl:otherwise>
</xsl:choose>
-
-
+ <xsl:choose>
+ <xsl:when test="use-fast-fail">
+ <attribute name="UseFastFail"><xsl:value-of select="use-fast-fail"/></attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <attribute name="UseFastFail">False</attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+
<!--
criteria indicates if Subject (from security domain) or app supplied
parameters (such as from getConnection(user, pw)) are used to distinguish
More information about the jboss-cvs-commits
mailing list