javax.resource.spi
Interface ConnectionEventListener

All Superinterfaces:
java.util.EventListener
All Known Subinterfaces:
ConnectionListener (src)
All Known Implementing Classes:
BaseConnectionManager2.BaseConnectionEventListener (src)

public interface ConnectionEventListener
extends java.util.EventListener

The ConnectionEventListener interface provides for a callback mechanism to enable objects to listen for events of the ConnectionEvent class. An Application server uses these events to manage its connection pools.


Method Summary
 void connectionClosed(ConnectionEvent (src)  event)
          Notifies the listener that a connection has been closed
 void connectionErrorOccurred(ConnectionEvent (src)  event)
          Connection error has occurred
 void localTransactionCommitted(ConnectionEvent (src)  event)
          Local transaction has been committed
 void localTransactionRolledback(ConnectionEvent (src)  event)
          Local transaction has been rolled back
 void localTransactionStarted(ConnectionEvent (src)  event)
          Local transaction has been started
 

Method Detail

connectionClosed

public void connectionClosed(ConnectionEvent (src)  event)
Notifies the listener that a connection has been closed

Parameters:
event - the closed event

localTransactionStarted

public void localTransactionStarted(ConnectionEvent (src)  event)
Local transaction has been started

Parameters:
event - the local transaction started event

localTransactionCommitted

public void localTransactionCommitted(ConnectionEvent (src)  event)
Local transaction has been committed

Parameters:
event - the local transaction committed event

localTransactionRolledback

public void localTransactionRolledback(ConnectionEvent (src)  event)
Local transaction has been rolled back


connectionErrorOccurred

public void connectionErrorOccurred(ConnectionEvent (src)  event)
Connection error has occurred