com.ail.core.configure
Class ConnectionPoolConfigurationLoader
java.lang.Object
com.ail.core.configure.AbstractConfigurationLoader
com.ail.core.configure.JDBCConfigurationLoader
com.ail.core.configure.ConnectionPoolConfigurationLoader
public class ConnectionPoolConfigurationLoader
- extends JDBCConfigurationLoader
This ConfigurationLoader is almost identical to the JDBCConfigurationLoader, except in
that it gets its database connection from a connection pool via a JNDI lookup (rather than
by creating the connection itself).
This loader expects the loader.property file to define the following properties:
jndiname - the JNDI name of the connection pool to use.
- Version:
- $Revision: 1.3 $
|
Method Summary |
java.sql.Connection |
openConnection()
Open a connection to the configuration database. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionPoolConfigurationLoader
public ConnectionPoolConfigurationLoader()
openConnection
public java.sql.Connection openConnection()
- Open a connection to the configuration database.
Note: This is public for testing purposes only. Directly using the
configuration table of a live system is strongly discouraged!
- Overrides:
openConnection in class JDBCConfigurationLoader
- Returns:
- connection to read data from.