Hi, in most examples of using JDBC connections a
pattern like the following pattern is used to clean up
resources
finally
{
if(resultSet != null) resultSet.close();
if(statement != null) statement.close();
if(connection != null) connection.close();
}
Shouldn't closing the connection also close the
statement and result set, making the first 2 lines
redundant? What is the proper pattern?
Thanks,
Jim
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user