Name

ConnectionEventListener

Synopsis

This interface represents a listener that a provider can implement and register with a ManagedConnection to receive event notifications, using the ManagedConnection.addConnectionEventListener() method.

                  Passed To
public interface ConnectionEventListener extends java.util.EventListener {
// Public Instance Methods
   public abstract void connectionClosed(
        javax.resource.spi.ConnectionEvent event);  
   public abstract void connectionErrorOccurred(
        javax.resource.spi.ConnectionEvent event);  
   public abstract void localTransactionCommitted(
        javax.resource.spi.ConnectionEvent event);  
   public abstract void localTransactionRolledback(
        javax.resource.spi.ConnectionEvent event);  
   public abstract void localTransactionStarted(
        javax.resource.spi.ConnectionEvent event);  
}

Passed To

ManagedConnection.{addConnectionEventListener(), removeConnectionEventListener()}

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.