public interface JDBCConnectionService
Interface used to obtain a database connection from a JDBC data source.
JDBC data sources are identified by name, not JNDI path.
| Modifier and Type | Method and Description | 
|---|---|
Connection | 
getConnection(String sqlConnectionName)
Gets a  
Connection instance from the named JDBC data source. | 
void | 
releaseConnection(Connection connection)
Releases the  
Connection instance. | 
Connection getConnection(String sqlConnectionName) throws SQLException, JDBCConnectionServiceException
Gets a Connection instance from the named JDBC data source.
 When finished with the connection, the security provider must invoke the
 releaseConnection method to release that connection.
sqlConnectionName - SQLException - - if the database connection is unavailableJDBCConnectionServiceException - - if the named JDBC data source is unavailablevoid releaseConnection(Connection connection) throws SQLException
Releases the Connection instance.
connection - SQLException - - if the database connection is unavailable