var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Help: JDBC Connection
I had a jsp that connects to a DB2 using jdbc connection.
It is something like:
> <%@ page isThreadSafe="true" %>
> Connection conn = null;
> Statement stmt = null;
> ResultSet rs = null;
> conn = DriverManager.getConnection(URL, id, pwd);
> stmt = conn.createStatement ();
> rs = stmt.executeQuery(strSQLStmt);
> } catch (Exception ee)
When there are many concurrent accesses, sometimes A will see the
result set of B.
I believe it is due to incorrect way of handling concurrent accesses
to database. Anyone advice about how to cope with it? Thanks.
[r]Class.forName(driver class); //required[/r]
conn = DriverManager.getConnection(URL, id, pwd);