Chin Cedric Sung Kit wrote:
>
> i initialize my oracle-jdbc
> database connection in my LoginServlet. how do i re-use this connection
> in my other jsp pages, so that i will not have to open so many
> connections?
You don't re-use your connection. At a minimum, you should use a new
connection for every session. If you try to use the same connection for
every request, you will have concurrency problems.
A question similar to this was posted yesterday. Check the archives for
more details.
___________________________________________________________________________
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