FileDocCategorySizeDatePackage
NoTxConnectionManager.javaAPI DocJBoss 4.2.14361Fri Jul 13 21:01:18 BST 2007org.jboss.resource.connectionmanager

NoTxConnectionManager

public class NoTxConnectionManager extends BaseConnectionManager2
The NoTxConnectionManager is an simple extension class of the BaseConnectionManager2 for use with jca adapters with no transaction support. It includes functionality to obtain managed connections from a ManagedConnectionPool mbean, find the Subject from a SubjectSecurityDomain, and interact with the CachedConnectionManager for connections held over transaction and method boundaries. Important mbean references are to a ManagedConnectionPool supplier (typically a JBossManagedConnectionPool), and a RARDeployment representing the ManagedConnectionFactory.
author
David Jencks
author
Adrian Brock
version
$Revision: 57189 $

Fields Summary
Constructors Summary
public NoTxConnectionManager()

   
public NoTxConnectionManager(CachedConnectionManager ccm, ManagedConnectionPool poolingStrategy)
Creates a new NoTxConnectionManager instance. for TESTING ONLY! not a managed operation.

param
ccm a CachedConnectionManager value
param
poolingStrategy a ManagedConnectionPool value

      super(ccm, poolingStrategy);
   
Methods Summary
public ConnectionListenercreateConnectionListener(javax.resource.spi.ManagedConnection mc, java.lang.Object context)

      ConnectionListener cli = new NoTxConnectionEventListener(mc, poolingStrategy, context, log);
      mc.addConnectionEventListener(cli);
      return cli;
   
protected voidmanagedConnectionDisconnected(ConnectionListener cl)

      //if there are no more handles, we can return to pool.
      if (cl.isManagedConnectionFree())
         returnManagedConnection(cl, false);