Rapporto Tecnico, Anno 7, n° 42 maggio 2012
The number of objects to be examined on each run of idle
evictor thread (if applicable). A value less than zero indicates
that ceil(numIdle)/abs(numTestsPerEvictionRun) will be run.
The JDBC driver class name.
The maximum amount of time in milliseconds the
borrowObject() method should wait before throwing an Exception when
whenExhaustedAction is set to WHEN_EXHAUSTED_BLOCK. A value less
than zero indicates block indefinitely.
The minimum of idle instances in pool.
The minimum amount of time in milliseconds an object can be
idle in pool before eligible for eviction (if applicable). A value
less than zero indicates no object will be evicted due to idle time
alone.
The time in milliseconds to sleep between runs of the idle
object evictor thread. A value less than zero indicates no idle
evictor thread is run.
Derby database on localhost running on port 1527 Each
connection pool instance has several configuration parameter that
can be used to tune the options for the connection pool. It is
recommended that you not change the default values unless you are
trying to address a specific performance issue. For additional
information regarding connection pool options, refer to the Apache
Commons Pool API documentation at
http://jakarta.apache.org/commons/pool/apidocs/index.html.
The maximum number of idle instances in pool.
When true objects are validated before borrowed from the
pool.
When true, objects are validated by the idle object evictor
thread.
The database user name.
When true, objects are validated before returned to the
pool.
The maximum number of active instances in pool.
The database password.
The JDBC connection URL.
Action to take when a new object is requested and the the pool has
reached maximum number of active objects. Valid values are:
0 (fail i.e., throw Exception)
1 (block i.e., wait until pool resources are freed)
2 (grow i.e., increase the size of the pool).
The number of objects to be examined on each run of idle
evictor thread (if applicable). A value less than zero indicates
that ceil(numIdle)/abs(numTestsPerEvictionRun) will be run.
The JDBC driver class name.
The maximum amount of time in milliseconds the
borrowObject() method should wait before throwing an Exception when
whenExhaustedAction is set to WHEN_EXHAUSTED_BLOCK. A value less
than zero indicates block indefinitely.
The minimum of idle instances in pool.
The minimum amount of time in milliseconds an object can be
idle in pool before eligible for eviction (if applicable). A value
less than zero indicates no object will be evicted due to idle time
alone.
56