public void connectionErrorOccurred(ConnectionEvent event){
  if (isActive) {
    try {
      PooledConnection conn=(PooledConnection)event.getSource();
      provider.returnAndExpireConnection(conn);
    }
 catch (    Exception ex) {
      String exception="GemFireTransactionDataSource::connectionErrorOccured: Exception occured due to " + ex;
      if (logger.isDebugEnabled()) {
        logger.debug(exception,ex);
      }
    }
  }
}

public void connectionErrorOccurred ( ConnectionEvent event ) { if ( isActive ) { try { PooledConnection conn = ( PooledConnection ) event . getSource ( ) ; provider . returnAndExpireConnection ( conn ) ; } catch ( Exception ex ) { String exception = "GemFireTransactionDataSource::connectionErrorOccured: Exception occured due to " + ex ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( exception , ex ) ; } } } }
implementation of call back function from connectioneventlistener interface . this callback will be invoked on connection error event .
