Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions modules/jdbc-pool/doc/jdbc-pool.xml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@

<attribute name="testOnBorrow" required="false">
<p>(boolean) The indication of whether objects will be validated before being borrowed from the pool.
If the object fails to validate, it will be dropped from the pool, and we will attempt to borrow another.
If the object fails to validate, a reconnection is attempted using the same object.
If the reconnection also fails, the object is dropped from the pool and an <code>SQLException</code> is thrown.
In order to have a more efficient validation, see <code>validationInterval</code>.
Default value is <code>false</code>
</p>
Expand Down Expand Up @@ -304,7 +305,7 @@

<attribute name="validationQuery" required="false">
<p>(String) The SQL query that will be used to validate connections from this pool before returning them to the caller.
If specified, this query does not have to return any data, it just can't throw a <code>SQLException</code>.
If specified, this query does not have to return any data, it just can't throw an <code>SQLException</code>.
The default value is <code>null</code>.
If not specified, connections will be validation by the isValid() method.
Example values are <code>SELECT 1</code>(mysql), <code>select 1 from dual</code>(oracle), <code>SELECT 1</code>(MS Sql Server)
Expand Down