org.jboss.resource.connectionmanager
Class NoTxConnectionManager

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.resource.connectionmanager.BaseConnectionManager2 (src) 
              extended byorg.jboss.resource.connectionmanager.NoTxConnectionManager
All Implemented Interfaces:
ConnectionCacheListener (src) , ConnectionListenerFactory (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class NoTxConnectionManager
extends BaseConnectionManager2 (src)

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.


Nested Class Summary
 
Nested classes inherited from class org.jboss.resource.connectionmanager.BaseConnectionManager2 (src)
BaseConnectionManager2.BaseConnectionEventListener (src) , BaseConnectionManager2.ConnectionManagerProxy (src)
 
Field Summary
 
Fields inherited from class org.jboss.resource.connectionmanager.BaseConnectionManager2 (src)
jndiName, poolingStrategy, STOPPING_NOTIFICATION, trace
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
NoTxConnectionManager()
          Creates a new NoTxConnectionManager instance.
NoTxConnectionManager(CachedConnectionManager (src)  ccm, ManagedConnectionPool (src)  poolingStrategy)
          Creates a new NoTxConnectionManager instance.
 
Method Summary
 ConnectionListener (src) createConnectionListener(ManagedConnection (src)  mc, java.lang.Object context)
          Create a managed connection listener for the managed connection
protected  void managedConnectionDisconnected(ConnectionListener (src)  cl)
          For polymorphism.
 
Methods inherited from class org.jboss.resource.connectionmanager.BaseConnectionManager2 (src)
allocateConnection, disconnect, disconnectManagedConnection, getCachedConnectionManager, getCcm, getConnectionCount, getInstance, getJaasSecurityManagerService, getJndiName, getManagedConnection, getManagedConnection, getManagedConnectionFactory, getManagedConnectionPool, getNotificationInfo, getPoolingStrategy, getSecurityDomainJndiName, getTransactionManagerInstance, isTransactional, managedConnectionReconnected, reconnect, reconnectManagedConnection, rethrowAsResourceException, returnManagedConnection, setCachedConnectionManager, setJaasSecurityManagerService, setJndiName, setManagedConnectionPool, setSecurityDomainJndiName, startService, stopService, transactionStarted, unregisterAssociation
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoTxConnectionManager

public NoTxConnectionManager()
Creates a new NoTxConnectionManager instance.


NoTxConnectionManager

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

Parameters:
ccm - a CachedConnectionManager value
poolingStrategy - a ManagedConnectionPool value
Method Detail

createConnectionListener

public ConnectionListener (src)  createConnectionListener(ManagedConnection (src)  mc,
                                                   java.lang.Object context)
Description copied from interface: ConnectionListenerFactory (src)
Create a managed connection listener for the managed connection

Parameters:
mc - the managed connection
context - a context object used by the pool
Returns:
a new connection event listener

managedConnectionDisconnected

protected void managedConnectionDisconnected(ConnectionListener (src)  cl)
                                      throws ResourceException (src) 
Description copied from class: BaseConnectionManager2 (src)
For polymorphism.

Do not invoke directly use disconnectManagedConnection which does the relevent exception handling

Overrides:
managedConnectionDisconnected in class BaseConnectionManager2 (src)
Throws:
ResourceException (src)