public void connectionClosed(ConnectionEvent event){
  if (isActive) {
    try {
      PooledConnection conn=(PooledConnection)event.getSource();
      provider.returnConnection(conn);
    }
 catch (    Exception ex) {
      String exception="GemFireConnPooledDataSource::connectionclosed:Exception =" + ex;
      if (logger.isDebugEnabled()) {
        logger.debug(exception,ex);
      }
    }
  }
}

public void connectionClosed ( ConnectionEvent event ) { if ( isActive ) { try { PooledConnection conn = ( PooledConnection ) event . getSource ( ) ; provider . returnConnection ( conn ) ; } catch ( Exception ex ) { String exception = "GemFireConnPooledDataSource::connectionclosed:Exception =" + ex ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( exception , ex ) ; } } } }
implementation of call back function from connectioneventlistener interface . this callback will be invoked on connection close event .
