java bonecp connection-pool handling issue -


i can't find anywhere web code example how enable connection watch because message in log

153624 [com.google.common.base.internal.finalizer] warn  com.jolbox.bonecp.connectionpartition - bonecp    detected  unclosed connection , attempt close  you. should closing connection in  application - enable connectionwatch additional debugging assistance. 

this definition:

bonecpconfig config = new bonecpconfig(); class.forname(loc.driver);  // load db driver config.setjdbcurl(loc.url); // set jdbc url config.setusername(loc.user);           // set username config.setpassword(loc.password);               // set password config.setminconnectionsperpartition(5); config.setmaxconnectionsperpartition(10); config.setpartitioncount(5); config.setacquireincrement(5); //config.setcloseconnectionwatch(true); connectionpool = new bonecp(config); 

i used the:

 config.setcloseconnectionwatch(true); 

but didn't give me additional debugging assistance.

i realize old , resolved, debug information need set setcloseconnectionwatchtimeout or setcloseconnectionwatchtimeoutinms.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -