commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Campbell <scampb...@gmail.com>
Subject [dbcp] PerUserPoolDatasource
Date Thu, 01 Sep 2005 18:09:17 GMT
I found a need for the following method and added it to my local source.
It seems to do the trick for me.

public void closePoolPerUser(String user,String password)
{
if(getNumActive(user,password) == 0){
try{
((ObjectPool)pools.get(getPoolKey(user))).close();
pools.remove(getPoolKey(user));
}catch(Exception e){
}
}
}

I'll be removing myself from the list now as no one responds. 
This is why alot of decent developers don't try to contribute.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message