org.jboss.resource.connectionmanager
Class NoTxConnectionManager
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.resource.connectionmanager.BaseConnectionManager2 (src)
org.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.
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
valuepoolingStrategy
- a ManagedConnectionPool
value
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 connectioncontext
- 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)