站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 connector API Documentation 英文版文档

TxConnectionManager.TxConnectionEventListener (JBoss Connector API) - JBoss 3.2.7 connector API Documentation 英文版文档


org.jboss.resource.connectionmanager
Class TxConnectionManager.TxConnectionEventListener

java.lang.Object
  extended byorg.jboss.resource.connectionmanager.BaseConnectionManager2.BaseConnectionEventListener
      extended byorg.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.
 
Fields inherited from class org.jboss.resource.connectionmanager.BaseConnectionManager2.BaseConnectionEventListener
trace
 
Fields inherited from interface org.jboss.resource.connectionmanager.ConnectionListener
DESTROY, DESTROYED, NORMAL
 
Constructor Summary
TxConnectionManager.TxConnectionEventListener(javax.resource.spi.ManagedConnection mc, ManagedConnectionPool mcp, Object context, org.jboss.logging.Logger log, XAResource xaResource)
           
 
Method Summary
 void connectionClosed(javax.resource.spi.ConnectionEvent ce)
           
 void connectionErrorOccurred(javax.resource.spi.ConnectionEvent ce)
          May be overridden to e.g.
 void delist()
          Delist the managed connection
 void enlist()
          Enlist the managed connection
protected  XAResource getXAResource()
           
 boolean isManagedConnectionFree()
          Is the managed connection free?
 void localTransactionCommitted(javax.resource.spi.ConnectionEvent ce)
           
 void localTransactionRolledback(javax.resource.spi.ConnectionEvent ce)
           
 void localTransactionStarted(javax.resource.spi.ConnectionEvent ce)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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.