The implementation of the connection manager is split in two classes, with a shared base class for common
functionality.
AbstractConnectionManager
provides the methods that are shared across both implementations,
NoTxConnectionManagerImpl
and TxConnectionManagerImpl
.
getManagedConnection(Transaction, Subject, ConnectionRequestInfo)
obtains a
ConnectionListener
instance from the pool. If an error occurs a retry is performed, if configured.
returnManagedConnection(ConnectionListener, boolean)
returns a
ConnectionListener
instance to the pool. If an error occurs a retry is performed, if configured.
allocateConnection(ManagedConnectionFactory, ConnectionRequestInfo)
allocates a connection for the
managed connection attached to the ConnectionListener
instance.
associateManagedConnection(Object, ManagedConnectionFactory, ConnectionRequestInfo)
associates a
ManagedConnection
with the passed in connection. This is a
LazyAssociatableConnectionManager
extension of IronJacamar.
dissociateManagedConnection(Object, ManagedConnection, ManagedConnectionFactory)
dissociates a
connection with its ManagedConnection
instance. This is a
LazyAssociatableConnectionManager
extension of IronJacamar.
shutdown
shuts down the connection manager, and its related pool instance.