当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 connector API Documentation 英文版文档
TxConnectionManager.TxConnectionEventListener (JBoss Connector API) - JBoss 4.0.1 sp1 connector API Documentation 英文版文档
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:
- javax.resource.spi.ConnectionEventListener, ConnectionListener, EventListener
- Enclosing class:
- TxConnectionManager
- protected class TxConnectionManager.TxConnectionEventListener
- extends BaseConnectionManager2.BaseConnectionEventListener
Field Summary |
protected Transaction |
currentTx
|
protected org.jboss.logging.Logger |
log
Use our own logger to prevent MNFE caused by compiler bug with nested classes. |
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.
currentTx
protected Transaction currentTx
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
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)
connectionErrorOccurred
public void connectionErrorOccurred(javax.resource.spi.ConnectionEvent ce)
- Description copied from class:
BaseConnectionManager2.BaseConnectionEventListener
- May be overridden to e.g. remove from tx map.
- Specified by:
connectionErrorOccurred
in interface javax.resource.spi.ConnectionEventListener
- Overrides:
connectionErrorOccurred
in class BaseConnectionManager2.BaseConnectionEventListener
- Parameters:
ce
-
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
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.