org.jboss.resource.connectionmanager
Class TxConnectionManager.TxConnectionEventListener

java.lang.Object
  extended by org.jboss.resource.connectionmanager.BaseConnectionManager2.BaseConnectionEventListener
      extended by 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
           
 
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)
           
 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)
           
 void tidyup()
          Tidyup
protected  void toString(StringBuffer buffer)
           
 
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.


transactionSynchronization

protected org.jboss.resource.connectionmanager.TxConnectionManager.TxConnectionEventListener.TransactionSynchronization transactionSynchronization
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
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)

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.