Subject | How is statement pooling working ? |
---|---|
Author | Carsten Schäfer |
Post date | 2004-08-05T13:08:43Z |
Hi,
my question:
Is the PreparedStatement in the following code somehow reused ?
while(true) {
Connection con = getConnection(); // gets a connection from Pool.
PreparedStatement ps = con.prepareStatement(some_sql);
ps.execute();
con close();
}
my question:
Is the PreparedStatement in the following code somehow reused ?
while(true) {
Connection con = getConnection(); // gets a connection from Pool.
PreparedStatement ps = con.prepareStatement(some_sql);
ps.execute();
con close();
}