Code example for PooledConnection

Methods: removeConnectionEventListener

0
        if (null != event.getSQLException()) {
            System.err.println(
                    "CLOSING DOWN CONNECTION DUE TO INTERNAL ERROR (" 
                    + event.getSQLException() + ")");
        } 
        pc.removeConnectionEventListener(this);
 
        PooledConnectionAndInfo pci = pcMap.get(pc);
        if (pci == null) {
            throw new IllegalStateException(NO_KEY_MESSAGE);
        } 
        try { 
            _pool.invalidateObject(pci);
        } catch (Exception e) {
            System.err.println("EXCEPTION WHILE DESTROYING OBJECT " + pci);
            e.printStackTrace();
        } 
    } 
 
    // *********************************************************************** 
Experience pair programming with AI  Get Codota for Java