Name

ConnectionEventListener

Synopsis

An object that implements ConnectionEventListener registers to receive event notifications from PooledConnection objects. The connectionClosed() method is called when the close() method of the PooledConnection object is called, while the connectionErrorOccurred() method is called immediately before an SQLException is thrown to indicate a fatal error condition (one that renders the connection unusable in the future).

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

Passed To

PooledConnection.{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.