I have gone with the different approach , here it goes .
I have modified the ConnectionFactoryTemplate.xsl. I have made the following changes
Changed <xsl:choose>
| <xsl:when test="max-pool-size">
| <attribute name="MaxSize"><xsl:value-of
select="max-pool-size"/></attribute>
| </xsl:when>
| <xsl:otherwise>
| <attribute name="MaxSize">20</attribute>
| </xsl:otherwise>
| </xsl:choose>
to
<xsl:variable name="maxPoolCount"><xsl:value-of
select="max-pool-size"/></xsl:variable>
| <xsl:variable name="minPoolCount"><xsl:value-of
select="min-pool-size"/></xsl:variable>
| <xsl:choose>
| <!-- max-pool-size entry is there in the -ds.xml file -->
| <xsl:when test="max-pool-size">
| <xsl:choose>
| <!-- min pool size is present -->
| <xsl:when test="min-pool-size">
| <xsl:choose>
| <xsl:when test="$maxPoolCount>$minPoolCount">
| <attribute name="MaxSize"><xsl:value-of
select="max-pool-size"/></attribute>
| </xsl:when>
| <xsl:otherwise>
| <attribute name="MaxSize"><xsl:value-of
select="min-pool-size"/></attribute>
| </xsl:otherwise>
| </xsl:choose>
| </xsl:when>
| <!-- min pool size is absent -->
| <xsl:otherwise>
| <attribute name="MaxSize"><xsl:value-of
select="max-pool-size"/></attribute>
| </xsl:otherwise>
| </xsl:choose>
| </xsl:when>
|
| <!-- max-pool-size entry is not there in the -ds.xml file -->
| <xsl:otherwise>
| <xsl:choose>
| <!-- min-pool-size is present -->
| <xsl:when test="min-pool-size">
| <xsl:choose>
| <xsl:when test="20 >= $minPoolCount">
| <attribute name="MaxSize">20</attribute>
| </xsl:when>
| <xsl:otherwise>
| <attribute name="MaxSize"><xsl:value-of
select="min-pool-size"/></attribute>
| </xsl:otherwise>
| </xsl:choose>
| </xsl:when>
| <!-- min-pool-size is absent -->
| <xsl:otherwise>
| <attribute name="MaxSize">20</attribute>
| </xsl:otherwise>
| </xsl:choose>
| </xsl:otherwise>
| </xsl:choose>
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033499#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...