org.jboss.resource.connectionmanager
Class TxConnectionManager.TxConnectionEventListener
java.lang.Object
org.jboss.resource.connectionmanager.BaseConnectionManager2.BaseConnectionEventListener
org.jboss.resource.connectionmanager.TxConnectionManager.TxConnectionEventListener
- All Implemented Interfaces:
- EventListener, javax.resource.spi.ConnectionEventListener, ConnectionListener
- Enclosing class:
- TxConnectionManager
protected class TxConnectionManager.TxConnectionEventListener
- extends BaseConnectionManager2.BaseConnectionEventListener
Field Summary |
protected org.jboss.logging.Logger |
log
Use our own logger to prevent MNFE caused by compiler bug with nested classes. |
protected org.jboss.resource.connectionmanager.TxConnectionManager.TxConnectionEventListener.TransactionSynchronization |
transactionSynchronization
|
Methods inherited from class org.jboss.resource.connectionmanager.BaseConnectionManager2.BaseConnectionEventListener |
getContext, getManagedConnection, getManagedConnectionPool, getState, grantPermit, hasPermit, isTimedOut, isTrackByTx, registerConnection, setState, setTrackByTx, toString, unregisterConnection, unregisterConnections, used |
log
protected org.jboss.logging.Logger log
- Use our own logger to prevent MNFE caused by compiler bug with nested classes.
transactionSynchronization
protected org.jboss.resource.connectionmanager.TxConnectionManager.TxConnectionEventListener.TransactionSynchronization transactionSynchronization
TxConnectionManager.TxConnectionEventListener
public TxConnectionManager.TxConnectionEventListener(javax.resource.spi.ManagedConnection mc,
ManagedConnectionPool mcp,
Object context,
org.jboss.logging.Logger log,
XAResource xaResource)
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
enlist
public void enlist()
throws SystemException
- Description copied from interface:
ConnectionListener
- Enlist the managed connection
- Specified by:
enlist
in interface ConnectionListener
- Overrides:
enlist
in class BaseConnectionManager2.BaseConnectionEventListener
- Throws:
SystemException
delist
public void delist()
throws javax.resource.ResourceException
- Description copied from interface:
ConnectionListener
- Delist the managed connection
- Specified by:
delist
in interface ConnectionListener
- Overrides:
delist
in class BaseConnectionManager2.BaseConnectionEventListener
- Throws:
javax.resource.ResourceException
getXAResource
protected XAResource getXAResource()
connectionClosed
public void connectionClosed(javax.resource.spi.ConnectionEvent ce)
localTransactionStarted
public void localTransactionStarted(javax.resource.spi.ConnectionEvent ce)
localTransactionCommitted
public void localTransactionCommitted(javax.resource.spi.ConnectionEvent ce)
localTransactionRolledback
public void localTransactionRolledback(javax.resource.spi.ConnectionEvent ce)
tidyup
public void tidyup()
throws javax.resource.ResourceException
- Description copied from interface:
ConnectionListener
- Tidyup
Invoked just before returning the connection to the pool
when the connection is not being destroyed
- Specified by:
tidyup
in interface ConnectionListener
- Overrides:
tidyup
in class BaseConnectionManager2.BaseConnectionEventListener
- Throws:
javax.resource.ResourceException
- for any error
connectionErrorOccurred
public void connectionErrorOccurred(javax.resource.spi.ConnectionEvent ce)
- Specified by:
connectionErrorOccurred
in interface javax.resource.spi.ConnectionEventListener
- Overrides:
connectionErrorOccurred
in class BaseConnectionManager2.BaseConnectionEventListener
isManagedConnectionFree
public boolean isManagedConnectionFree()
- Description copied from interface:
ConnectionListener
- Is the managed connection free?
- Specified by:
isManagedConnectionFree
in interface ConnectionListener
- Overrides:
isManagedConnectionFree
in class BaseConnectionManager2.BaseConnectionEventListener
- Returns:
- true when it is free
toString
protected void toString(StringBuffer buffer)
- Overrides:
toString
in class BaseConnectionManager2.BaseConnectionEventListener
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.