While using the BoneCP connection pooling, I came across the following confusions and would like to hear some advise on this:
- Is the
getConnection
method of the BoneCP thread-safe? What is the best way to use this when there are many threads asking for a connection in parallel? - Is it required to call
connection.close()
every time after using the connection? - if it is required to call
connection.close()
, will it really disconnect the connection with the DB or just sends the connection to the pool?
Thanks in advance for the support.