|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bankframe.ei.txnhandler.connector.offline.OffLineConnectionManager
This class acts as a resource manager for the OffLine Connector. It provides connection pooling and management for an application that is using a group of OffLine Connectors. This implementation utilizes JDBC DataSource objects and should only be used when JDBC DataSource functionality is available within the application server that you are running in.
Method Summary | |
java.lang.Object |
allocateConnection(EManagedConnectionFactory mcf,
java.lang.String properties)
This method gets called by the host connector's connection factory instance. |
void |
connectionClosed(EConnectionEvent event)
This method is called when an application closes it's connection handle. |
void |
connectionErrorOccurred(EConnectionEvent event)
This method is called when connection error occurs. |
void |
freeConnection(EManagedConnection con)
This method is called to free a connection from the Connection Pool. |
static OffLineConnectionManager |
getInstance()
This method is used to get an instance of the OffLineConnection manager. |
OffLineConnectionPool |
getPool()
This method is used to obtain the Connection Pool object associated with this manager. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.Object allocateConnection(EManagedConnectionFactory mcf, java.lang.String properties)
allocateConnection
in interface EConnectionManager
mcf
- The ManagedConnectionFactory used by the Connection Manager to delegate
connection matching or creation.properties
- Property values associated with the desired connection.
public void connectionClosed(EConnectionEvent event)
connectionClosed
in interface EConnectionEventListener
event
- The Connection Event associated with this connection closing.public void connectionErrorOccurred(EConnectionEvent event)
connectionErrorOccurred
in interface EConnectionEventListener
event
- The Connection Event associated with this connection error.public void freeConnection(EManagedConnection con)
con
- The managed connection to be freed from the pool.public static OffLineConnectionManager getInstance()
public OffLineConnectionPool getPool()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |