addConnectionEventListener(ConnectionEventListener listener)

Syntax:

void addConnectionEventListener(ConnectionEventListener listener)

Description:

Registers the given event listener so that it will be notified when an event occurs on this PooledConnection object.

Parameters:

listener

a component, usually the connection pool manager, that has implemented the ConnectionEventListener interface and wants to be notified when the connection is closed or has an error

Reference:

For more information, reference JDBC documentation for: PooledConnection.addConnectionEventListener(ConnectionEventListener)