Richard Bell

Greenhorn
+ Follow
since Oct 20, 2011
Richard likes ...
jQuery Firefox Browser Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Richard Bell

When using a data source to access a database is "connection.close();" going to close the associated statement and resultSet?

I have read a number of articles posted on a number of sites,
almost all agree that it is good practice to close the resultSet, statement and connection individually.
I have also read that the JDBC specification details that closing the connection will also close any associated resources (resultSet and statements).
There does not seem to be a right or wrong answer.

So would code closing just the connection be appropriate or should we always close all three?
Happy Thanksgiving!

Turkey, football, family, friends, holiday...what could be better.
9 years ago
Smart workers - right first time!

Hard workers - should have got it right first time, they stay late to fix defects
9 years ago
Are you using ANT to create your WAR file?