The web site of DbUtils says:
==>
DbUtils is a small set of classes designed to make working with JDBC easier. JDBC resource cleanup code is mundane, error prone work so these classes abstract out all of the cleanup tasks from your code leaving you with what you really wanted to do with JDBC in the first place: query and update data.
==>


Initially I though DbUtils would closes the connection as well, but this does not seem to be the case.
This is probably to simplify coding and to increase performance.
My conclusion is that code using DbUtils is responsible for closing a DataSource or Connection.
This is not mentioned on the web site.
It looks like a connection should be closed with DbUtils.close(Connection connection)
The advantage of this method is that it handles a null connection.


There is no method to close a DataSource.
How do I have to handle a DataSource when working with DbUtils?

--
John Zoetebier
Web site: http://www.transparent.co.nz

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to