Hi!, All,

I am writing a website with servlet that needs a lot of database work. I
am wondering if it is a good idea that I retrieve a database connection
when the user logins, then I put the connection in the session so that I
can use it in subsequent servelts, and when the user logouts, I close
the connection. In this way, I only need to build one connection at the
beginning and operate the whole time with it. Maybe it is quicker than
building connection everytime I need to access the database and closing
after that. Can anyone give me some advice?

thanks

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to