code: public void addConnectionEventListener(ConnectionEventListener listener) {
      log.finest("addConnectionEventListener()");
      if (listener == null)
        throw new IllegalArgumentException("Listener is null");
      listeners.add(listener);
    }
docs: Adds a connection event listener to the ManagedConnection instance.
  
  @param listener
  A new ConnectionEventListener to be registered