com.beasys.commerce.foundation.plugin.weblogic
Class WeblogicConnectionPool
java.lang.Object
|
+--com.beasys.commerce.foundation.plugin.weblogic.WeblogicConnectionPool
- public class WeblogicConnectionPool
- extends java.lang.Object
- implements 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. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
WeblogicConnectionPool
public WeblogicConnectionPool()
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.
- Specified by:
- setJNDIContext in interface SmartConnectionPool
- 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.
- Specified by:
- getConnection in interface SmartConnectionPool
- 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.
- Specified by:
- releaseConnection in interface SmartConnectionPool
- Parameters:
conn
- Connection object.- Throws:
- BMPException - implementation specific exception occurred
Copyright © 2000 BEA Systems, Inc. All Rights Reserved