Title: JAT
Description: This class implements a database connection pool accessing through JDBC.
Configuration:
In the data source name section put the following parameters:
- driver the JDBC driver class
- URL the JDBC URL to access to your database
- min_connections the minimun number if connection in the pool
- max_connections the maximum number if connection in the pool (use -1 to set unlimited)
- timeout is the maximum time (in milliseconds) the caller wait for a connection
- query definition (see query configuration in
com.jat.integration.db.GenericDatabaseDataSource for details)
Example:
[myDataSourceName]
driver = sun.jdbc.odbc.JdbcOdbcDriver
url = jdbc:odbc:MyDatabase
min_connections = 2
max_connections = 10
timeout = 20000
query1.name = myQueryName
query1.value = select * from dual
Copyright: Copyright (c) 2004 -2005 Stefano Fratini (stefano.fratini@gmail.com)
Distributed under the terms of the GNU Lesser General Public License, v2.1 or later
author: stf version: 1.2 since: 1.2 See Also: com.jat.integration.DataSource See Also: com.jat.integration.db.GenericDatabaseDataSource |