Code example for PooledConnection

Methods: addConnectionEventListener

pc = _cpds.getPooledConnection(username, upkey.getPassword());
            // should we add this object as a listener or the pool. 
            // consider the validateObject method in decision 
            pcKeyMap.put(pc, key);
        catch (SQLException e) 
            throw new RuntimeException(e.getMessage());
        return pc;
    public void destroyObject(Object key, Object obj) {
        if(obj instanceof PooledConnection) {
            try { 
            } catch(RuntimeException e) {
Contextual code suggestions in your IDE  Get Codota for Java