2 Replies Latest reply on Feb 5, 2008 1:46 PM by vickyk

    Idle Timeout Default

    greenthumb


      If the idle-timeout-minutes attribute is not set for a database connection datasource, is there a default?

      What happens to idle connections?

      Is there a JBoss global setting for idle connections that would span across all datasources if the value is not set?

      Thanks in advance.

      Michelle

        • 1. Re: Idle Timeout Default
          vickyk

           

          "greenThumb" wrote:

          If the idle-timeout-minutes attribute is not set for a database connection datasource, is there a default?

          What happens to idle connections?

          Thanks in advance.
          Michelle

          Yes there is default set to 15 minutes , it is set here
          <xsl:choose>
           <xsl:when test="idle-timeout-minutes">
           <attribute name="IdleTimeoutMinutes"><xsl:value-of select="idle-timeout-minutes"/></attribute>
           </xsl:when>
           <xsl:otherwise>
           <attribute name="IdleTimeoutMinutes">15</attribute>
           </xsl:otherwise>
           </xsl:choose>

          It is from here
          http://anonsvn.jboss.org/repos/jbossas/trunk/connector/src/resources/stylesheets/ConnectionFactoryTemplate.xsl

          Is there a JBoss global setting for idle connections that would span across all datasources if the value is not set?

          It is explained above , you can make the changes in value in xsl and build the required jar which is jboss-jca.jar .

          • 2. Re: Idle Timeout Default
            vickyk

            Also note that the xsl stuff is going off in Jboss5 . The default value is set in the the code.