tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Servlets with JDBC connectivity
Date Wed, 03 Dec 2003 17:27:22 GMT

> SQLUtils.executeQuery("a SQL statement");
> SQLUtils.executeUpdate("another one");

Just out of curiosity, what do these methods return? If the former 
returns a ResultSet object, then you're in for a world of trouble. The 
ResultSet will never get closed, or you'll close the connection over 
which the ResultSet communicates, and then you're hosed, 'cause the 
calling code can't access the data.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message