For example a class with 2 methods:
public void ClientDataModel readClient() {
conn = DriverManager.getConnection(Constants.JDBC_URL);
// Do I have to set AutoCommit explitly here ?
conn.setAutoCommit(true); // No transaction
...
conn.close()
}public void void updateClient(ClientDataModel) {
conn = DriverManager.getConnection(Constants.JDBC_URL);
// Do I have to set AutoCommit explitly here ?
conn.setAutoCommit(false); // Run in transaction mode
...
conn.close()
}Assume that I have only 1 connection in the pool.
After connection has been closed in a method, is it returned to the next method like it was set in the previous method ?
-- John Zoetebier Web site: http://www.transparent.co.nz
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
