org.openejb.spi
Interface OpenEJBConnectionManager

All Superinterfaces:
javax.resource.spi.ConnectionManager, java.io.Serializable

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: 1096 $
Author:
Aaron Mulder (ammulder@alumni.princeton.edu)

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
 

Method Detail

associateConnections

void associateConnections(java.lang.Object[] connections)
                          throws javax.resource.ResourceException
Add the specified connections to the current transaction.

Throws:
javax.resource.ResourceException

disposeConnections

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.

Throws:
javax.resource.ResourceException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.