com.ail.core.configure
Class ConnectionPoolConfigurationLoader

java.lang.Object
  extended by com.ail.core.configure.AbstractConfigurationLoader
      extended by com.ail.core.configure.JDBCConfigurationLoader
          extended by 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:

  1. jndiname - the JNDI name of the connection pool to use.

Version:
$Revision: 1.3 $

Constructor Summary
ConnectionPoolConfigurationLoader()
           
 
Method Summary
 java.sql.Connection openConnection()
          Open a connection to the configuration database.
 
Methods inherited from class com.ail.core.configure.JDBCConfigurationLoader
deleteConfigurationRepository, getNamespaces, getNamespacesHistorySummary, getNamespacesSummary, loadConfiguration, purgeAllConfigurations, reset, saveConfiguration
 
Methods inherited from class com.ail.core.configure.AbstractConfigurationLoader
getLoaderParams, loadLoader
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionPoolConfigurationLoader

public ConnectionPoolConfigurationLoader()
Method Detail

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.