tomcat-users mailing list archives

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

> 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.

-chris


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message