NoTxConnectionManagerpublic 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. |
Constructors Summary |
---|
public NoTxConnectionManager()
| public NoTxConnectionManager(CachedConnectionManager ccm, ManagedConnectionPool poolingStrategy)Creates a new NoTxConnectionManager instance.
for TESTING ONLY! not a managed operation.
super(ccm, poolingStrategy);
|
Methods Summary |
---|
public ConnectionListener | createConnectionListener(javax.resource.spi.ManagedConnection mc, java.lang.Object context)
ConnectionListener cli = new NoTxConnectionEventListener(mc, poolingStrategy, context, log);
mc.addConnectionEventListener(cli);
return cli;
| protected void | managedConnectionDisconnected(ConnectionListener cl)
//if there are no more handles, we can return to pool.
if (cl.isManagedConnectionFree())
returnManagedConnection(cl, false);
|
|