code: public void connectionFailed (
          String ident, boolean readOnly, Connection conn, SQLException error)
      {
          String mapkey = ident + ":" + readOnly;
          Mapping conmap = _idents.get(mapkey);
          if (conmap == null) {
              log.warning("Unknown connection failed!?", "key", mapkey);
          } else {
              conmap.closeConnection(ident);
          }
      }
docs: from ConnectionProvider