Should I close Connections from DbManager.getConnection()?
Should I close Connections from DbManager.getConnection()?
Since DbManager implements some sort of pooling, does this mean I should NOT close the returned connection when I'm done with it?
Re: Should I close Connections from DbManager.getConnection(
Hi,
Yes you must close the connections in order to return them to the pool. Please make sure that you do always close the connections after using them, otherwise you might exhaust the pool and every DB call will fail.
Yes you must close the connections in order to return them to the pool. Please make sure that you do always close the connections after using them, otherwise you might exhaust the pool and every DB call will fail.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Re: Should I close Connections from DbManager.getConnection(
Thanks for the quick answer!
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 58 guests