org.openejb.alt.connectors.minerva
Class MinervaXACM

java.lang.Object
  |
  +--org.opentools.minerva.connector.BaseConnectionManager
        |
        +--org.opentools.minerva.connector.XAConnectionManager
              |
              +--org.openejb.alt.connectors.minerva.MinervaXACM
All Implemented Interfaces:
javax.resource.spi.ConnectionManager, OpenEJBConnectionManager, java.io.Serializable

public class MinervaXACM
extends org.opentools.minerva.connector.XAConnectionManager
implements OpenEJBConnectionManager

Minerva implementation of an XAConnectionManager.

Version:
$Revision: 1.2 $
See Also:
Serialized Form

Inner classes inherited from class org.opentools.minerva.connector.BaseConnectionManager
org.opentools.minerva.connector.BaseConnectionManager.ConnectionListener, org.opentools.minerva.connector.BaseConnectionManager.NoTransactionListener, org.opentools.minerva.connector.BaseConnectionManager.SharedLocalConnectionListener, org.opentools.minerva.connector.BaseConnectionManager.XAListener
 
Fields inherited from class org.opentools.minerva.connector.BaseConnectionManager
DEFAULT_POOL_PER_FACTORY, handles, logger, POOL_CONFIG_VALUE_PER_FACTORY, POOL_CONFIG_VALUE_PER_USER, POOL_CONFIGURATION_KEY, pools
 
Constructor Summary
MinervaXACM()
           
 
Method Summary
 void associateConnections(java.lang.Object[] connections)
          Add the specified connections to the current transaction.
protected  void connectionHandleClosed(javax.resource.spi.ManagedConnectionFactory factory, java.lang.Object handle)
           
protected  void connectionHandleIssued(javax.resource.spi.ManagedConnectionFactory factory, java.lang.Object handle, java.lang.Object listener)
           
 void disposeConnections(java.lang.Object[] connections)
          Close the specified connections.
 
Methods inherited from class org.opentools.minerva.connector.XAConnectionManager
allocateConnection, enlistExistingConnection
 
Methods inherited from class org.opentools.minerva.connector.BaseConnectionManager
createPerFactoryPool, createPerFactoryPool, createPerUserPool, createPerUserPool, getLogWriter, getSecurityManager, getTransactionManager, setLogWriter, setSecurityManager, setTransactionManager, setTransactionManager, shutDown
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.resource.spi.ConnectionManager
allocateConnection
 

Constructor Detail

MinervaXACM

public MinervaXACM()
Method Detail

associateConnections

public void associateConnections(java.lang.Object[] connections)
                          throws javax.resource.ResourceException
Description copied from interface: OpenEJBConnectionManager
Add the specified connections to the current transaction.
Specified by:
associateConnections in interface OpenEJBConnectionManager

disposeConnections

public void disposeConnections(java.lang.Object[] connections)
                        throws javax.resource.ResourceException
Description copied from interface: OpenEJBConnectionManager
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.
Specified by:
disposeConnections in interface OpenEJBConnectionManager

connectionHandleIssued

protected void connectionHandleIssued(javax.resource.spi.ManagedConnectionFactory factory,
                                      java.lang.Object handle,
                                      java.lang.Object listener)
Overrides:
connectionHandleIssued in class org.opentools.minerva.connector.BaseConnectionManager

connectionHandleClosed

protected void connectionHandleClosed(javax.resource.spi.ManagedConnectionFactory factory,
                                      java.lang.Object handle)
Overrides:
connectionHandleClosed in class org.opentools.minerva.connector.BaseConnectionManager