SmartConnectionPool Interface
- public interface SmartConnectionPool
Defines the interface for Application Server independent connection pooling. This allows
for specification of Connection objects at deployment time.
getConnection() Method
public 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.
Exceptions
-
BMPException
- implementation specific exception occurred
releaseConnection(Connection) Method
public void releaseConnection(Connection
connection)
throws BMPException
Releases the SQL Connection for this Transaction.
Parameters
-
connection
- Connection object.
Exceptions
-
BMPException
- implementation specific exception occurred
setJNDIContext(Context) Method
public void setJNDIContext(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
-
JNDIContext
- the bean's ejbContext.
Exceptions
-
BMPException