commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33167] - [dbcp] Individual connection close method
Date Mon, 28 Feb 2005 17:41:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33167>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33167





------- Additional Comments From dirk.verbeeck@pandora.be  2005-02-28 18:41 -------
Removing the pool from the hashmap seems to work
(unit test doesn't fail anymore) but more testing is needed before commit.

    public synchronized void close(String user) {
    	try {
            PoolKey key = getPoolKey(user);
            ObjectPool pool = (ObjectPool) pools.get(key);
            pool.close();
            pools.remove(key);
    	} catch (Exception closePoolException) {
    		closePoolException.printStackTrace();
    	} 
    }


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message