java - Closing connection in BoneCP -


we have bonecp library managing our connection pools. i'd know if following statement return connection pool.

statement = conn.createstatement(); .... lots of code. .... connection conn = statement.getconnection(); statement.close(); conn.close(); 

will above code close connection , put connection pool?

update:

i'm asking question because when run statistics on connectionpool, still see conpool.gettotalleased() showing 2 connections being used. but, i've closed connections using above mechanism.

the whole sense of pool hold established connections database. when retrieve connection pool save time connect database.

what seeing pool holding connections fine.

when close connection, returned pool , marked available next retrieval.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -