Class JndiDataSourceFactory

java.lang.Object
org.apache.commons.jcs3.auxiliary.disk.jdbc.dsfactory.JndiDataSourceFactory
All Implemented Interfaces:
DataSourceFactory

public class JndiDataSourceFactory extends Object implements DataSourceFactory
A factory that looks up the DataSource from JNDI. It is also able to deploy the DataSource based on properties found in the configuration. This factory tries to avoid excessive context lookups to improve speed. The time between two lookups can be configured. The default is 0 (no cache). Borrowed and adapted from Apache DB Torque