public class DatabaseDSConnFactory extends Object implements DatabaseConnectionFactory
InitialContext
and DataSource
to obtain connections.Constructor and Description |
---|
DatabaseDSConnFactory(ConfigurationDBRef.DataSourceConnection dsConfig,
ConfigurationDBRef.ConnectionSettings connectionSettings)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
Creates a new database connection.
|
public DatabaseDSConnFactory(ConfigurationDBRef.DataSourceConnection dsConfig, ConfigurationDBRef.ConnectionSettings connectionSettings)
dsConfig
- is the datasource object name and initial context properties.connectionSettings
- are the connection-level settingspublic Connection getConnection() throws DatabaseConfigException
DatabaseConnectionFactory
getConnection
in interface DatabaseConnectionFactory
DatabaseConfigException
- throws to indicate a problem getting a new connection