org.openejb.spi
Interface OpenEJBConnectionManager
- All Superinterfaces:
- javax.resource.spi.ConnectionManager, java.io.Serializable
- All Known Implementing Classes:
- MinervaNoTransCM, MinervaSharedLocalCM, MinervaXACM
- public interface OpenEJBConnectionManager
- extends javax.resource.spi.ConnectionManager
OpenEJB extensions to J2EE Connector ConnectionManager. This allows the
container to act on connections that a bean is using across multiple
transactions. It can add connections to the current transaction, or
indicate that connections can be closed (because the bean instance was
released).
- Version:
- $Revision: 1.2 $
Method Summary |
void |
associateConnections(java.lang.Object[] connections)
Add the specified connections to the current transaction. |
void |
disposeConnections(java.lang.Object[] connections)
Close the specified connections. |
Methods inherited from interface javax.resource.spi.ConnectionManager |
allocateConnection |
associateConnections
public void associateConnections(java.lang.Object[] connections)
throws javax.resource.ResourceException
- Add the specified connections to the current transaction.
disposeConnections
public void disposeConnections(java.lang.Object[] connections)
throws javax.resource.ResourceException
- Close the specified connections. This method can only mark the
specified connection handles as closed, and return the ManagedConnection
to the pool if appropriate. It cannot actually close the connection
handle, because the ConnectionManager does not know what the connection
implementation is, and how to close it properly.