public void connectionClosed(ConnectionEvent event){
  if (isActive) {
    ManagedConnection conn=(ManagedConnection)event.getSource();
    TransactionManagerImpl transManager=TransactionManagerImpl.getTransactionManager();
    try {
      Transaction txn=transManager.getTransaction();
      if (txn == null) {
        mannPoolCache.returnPooledConnectionToPool(conn);
      }
    }
 catch (    Exception se) {
      String exception="FacetsJCAConnectionManagerImpl::connectionClosed: Exception occured due to " + se.getMessage();
      if (logger.isDebugEnabled()) {
        logger.debug(exception,se);
      }
    }
  }
}

public void connectionClosed ( ConnectionEvent event ) { if ( isActive ) { ManagedConnection conn = ( ManagedConnection ) event . getSource ( ) ; TransactionManagerImpl transManager = TransactionManagerImpl . getTransactionManager ( ) ; try { Transaction txn = transManager . getTransaction ( ) ; if ( txn == null ) { mannPoolCache . returnPooledConnectionToPool ( conn ) ; } } catch ( Exception se ) { String exception = "FacetsJCAConnectionManagerImpl::connectionClosed: Exception occured due to " + se . getMessage ( ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( exception , se ) ; } } } }
callback for connection closed .
