Author: kfujino
Date: Tue Jun 28 01:59:48 2016
New Revision: 1750434
URL: http://svn.apache.org/viewvc?rev=1750434&view=rev
Log:
Fix the description of maxAge attribute in jdbc-pool doc.
This attribute works both when a connection is returned and when a connection
is borrowed.
Modified:
tomcat/tc7.0.x/trunk/modules/jdbc-pool/doc/jdbc-pool.xml
tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
Modified: tomcat/tc7.0.x/trunk/modules/jdbc-pool/doc/jdbc-pool.xml
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/modules/jdbc-pool/doc/jdbc-pool.xml?rev=1750434&r1=1750433&r2=1750434&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/modules/jdbc-pool/doc/jdbc-pool.xml (original)
+++ tomcat/tc7.0.x/trunk/modules/jdbc-pool/doc/jdbc-pool.xml Tue Jun 28
01:59:48 2016
@@ -451,11 +451,17 @@
</attribute>
<attribute name="maxAge" required="false">
- <p>(long) Time in milliseconds to keep this connection. When a
connection is returned to the pool,
- the pool will check to see if the <code>now - time-when-connected >
maxAge</code> has been reached,
- and if so, it closes the connection rather than returning it to the
pool.
- The default value is <code>0</code>, which implies that connections
will be left open and no age check
- will be done upon returning the connection to the pool.</p>
+ <p>(long) Time in milliseconds to keep this connection. This attribute
+ works both when returning connection and when borrowing connection.
+ When a connection is borrowed from the pool, the pool will check to
see
+ if the <code>now - time-when-connected > maxAge</code> has been
reached
+ , and if so, it reconnects before borrow it. When a connection is
+ returned to the pool, the pool will check to see if the
+ <code>now - time-when-connected > maxAge</code> has been reached, and
+ if so, it closes the connection rather than returning it to the pool.
+ The default value is <code>0</code>, which implies that connections
+ will be left open and no age check will be done upon borrowing from
the
+ pool and returning the connection to the pool.</p>
</attribute>
<attribute name="useEquals" required="false">
Modified: tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?rev=1750434&r1=1750433&r2=1750434&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Tue Jun 28 01:59:48 2016
@@ -96,6 +96,11 @@
<strong>Realm</strong>s. Also document the <code>NullRealm</code> and
when it is automatically created for an <strong>Engine</strong>.
(markt)
</fix>
+ <fix>
+ Fix the description of <code>maxAge</code> attribute in jdbc-pool doc.
+ This attribute works both when a connection is returned and when a
+ connection is borrowed. (kfujino)
+ </fix>
</changelog>
</subsection>
<subsection name="Tribes">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]