public void connectionClosed(ConnectionEvent event){
  if (isActive) {
    ManagedConnection conn=(ManagedConnection)event.getSource();
    XAResource xar=null;
    if (xaResourcesMap.get(conn) != null)     xar=(XAResource)xaResourcesMap.get(conn);
    xaResourcesMap.remove(conn);
    try {
      Transaction txn=transManager.getTransaction();
      if (txn != null && xar != null) {
        txn.delistResource(xar,XAResource.TMSUCCESS);
      }
    }
 catch (    Exception se) {
      String exception="JCAConnectionManagerImpl::connectionClosed: Exception occured due to " + se;
      if (logger.isDebugEnabled()) {
        logger.debug(exception,se);
      }
    }
    mannPoolCache.returnPooledConnectionToPool(conn);
  }
}

public void connectionClosed ( ConnectionEvent event ) { if ( isActive ) { ManagedConnection conn = ( ManagedConnection ) event . getSource ( ) ; XAResource xar = null ; if ( xaResourcesMap . get ( conn ) != null ) xar = ( XAResource ) xaResourcesMap . get ( conn ) ; xaResourcesMap . remove ( conn ) ; try { Transaction txn = transManager . getTransaction ( ) ; if ( txn != null && xar != null ) { txn . delistResource ( xar , XAResource . TMSUCCESS ) ; } } catch ( Exception se ) { String exception = "JCAConnectionManagerImpl::connectionClosed: Exception occured due to " + se ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( exception , se ) ; } } mannPoolCache . returnPooledConnectionToPool ( conn ) ; } }
callback for connection closed .
