() if successful and conn.close in the
finally block. This reduces your JDBC code considerably.
Dave
From: Bomb Diggy [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Proper exception handling of JDBC code? Need to call
connection.rollback()?
Date
One of the many points I raised earlier was how to
properly close a database connection, and how that
might change depending on whether you were using
connection pooling and/or a DataSource. The example
JDBC code cited was that in the Struts 1.0.2 Javadoc:
2 matches
Mail list logo