com.beasys.commerce.bridge.bmp.jdbc
Interface SmartConnectionPool
- All Known Implementing Classes:
- WeblogicConnectionPool
- public interface SmartConnectionPool
Defines the interface for Application Server independent connection pooling. This allows
for specification of Connection objects at deployment time.
Method Summary |
java.sql.Connection |
getConnection()
Returns the SQL Connection for this Transaction. |
void |
releaseConnection(java.sql.Connection connection)
Releases the SQL Connection for this Transaction. |
void |
setJNDIContext(javax.naming.Context JNDIContext)
Inform provider of ejbContext. |
setJNDIContext
public void setJNDIContext(javax.naming.Context JNDIContext)
throws BMPException
- Inform provider of ejbContext.
The implementation of this interface has have a public, default
no-args constructor.
The provider relies on properties in the bean's deployment descriptor
as documented in a provider or Theory Center specified protocol.
- Parameters:
ejbContext
- the bean's ejbContext.
getConnection
public java.sql.Connection getConnection()
throws BMPException
- Returns the SQL Connection for this Transaction. The actual implementation
may choose to implement connection pooling etc.
- Returns:
- conn Connection object.
- Throws:
- BMPException - implementation specific exception occurred
releaseConnection
public void releaseConnection(java.sql.Connection connection)
throws BMPException
- Releases the SQL Connection for this Transaction.
- Parameters:
conn
- Connection object.- Throws:
- BMPException - implementation specific exception occurred
Copyright © 2000 BEA Systems, Inc. All Rights Reserved