Class JndiJdbcDataSourceInfo

All Implemented Interfaces:
DataSourceInfo

public class JndiJdbcDataSourceInfo extends AbstractJdbcDataSourceInfo
Collects the info required to instantiate a DataSource stored as a JNDI Resource.

Provides the DataSourceInfo factory method getDataSource which instantiates the DataSource

Author:
dberry
  • Constructor Details

    • JndiJdbcDataSourceInfo

      public JndiJdbcDataSourceInfo(String jndiName, int fetchSize, int batchSize)
      Creates a JndiJdbcDataSourceInfo from a JNDIName that represents the datasource in the application server.
      Parameters:
      jndiName - The JndiName of the app server datasource
      fetchSize - The fetchSize for the datasource
      batchSize - The batchSize used to update the datasource
    • JndiJdbcDataSourceInfo

      public JndiJdbcDataSourceInfo(String jndiName, int fetchSize, int batchSize, Context ctx)
      Creates a JndiJdbcDataSourceInfo from a JNDIName that represents the datasource in the application server.
      Parameters:
      jndiName - The JndiName of the app server datasource
      fetchSize - The fetchSize for the datasource
      batchSize - The batchSize used to update the datasource
      ctx - - The context for which the Jndi Lookup should use.