public void releaseAllResources()
    {
        super.releaseAllResources();
        synchronized (poolSynch)
        {
            if (!poolMap.isEmpty())
            {
                Collection pools = poolMap.values();
                Iterator iterator = pools.iterator();
                ObjectPool op = null;
                while (iterator.hasNext())
                {
                    try
                    {
                        op = (ObjectPool) iterator.next();
                        op.close();
                    }
                    catch (Exception e)
                    {
                        log.error("Exception occured while closing ObjectPool " + op, e);
                    }
                }
                poolMap.clear();
            }
            dsMap.clear();
        }
    }
public void releaseAllResources ( ) { super . releaseAllResources ( ) ; synchronized ( poolSynch ) { if ( ! poolMap . isEmpty ( ) ) { Collection pools = poolMap . values ( ) ; Iterator iterator = pools . iterator ( ) ; ObjectPool op = null ; while ( iterator . hasNext ( ) ) { try { op = ( ObjectPool ) iterator . next ( ) ; op . close ( ) ; } catch ( Exception e ) { log . error ( "Exception occured while closing ObjectPool " + op , e ) ; } } poolMap . clear ( ) ; } dsMap . clear ( ) ; } }
Closes all managed pools.