Hello!
I have designed a website with a servlet that holds on to a database
connection statically so as not to have to re-establish the data connection
with every single page request. (and it detects if the link went down, of
course). This connection has a bunch of prepared statements on it to make
things easier.
Now, the question is: Am I begging for trouble by doing this? What
happens if two page requests come in extremely close together? Is there a
guarantee that the servlet will only process one page at a time? Could it
be that two page requests will come in and cause the database connections
to step on each other?
Thanks!
mark.
--
-- I am not an ANGRY man. Take the rage out of my e-mail address to reply
please.
Comment