Gopalankutty, Ravi Kumar (CTS) wrote:

> Now after throwing the accounts summary page I give the user the
> option of adding a new expense. Which is nothing but a link to another
> servlet, say "AccountsManager". Now do I have to open the connection
> to the database once again, since this is another servlet that I am
> invoking.

You're best off using a ConnectionPool, like the one at
javaexchange.com.  Then you can have all servlets share a connection,
or have each request use a unique connection, depending on your
synchronization/transaction needs.

-jh-

--
Jason Hunter
[EMAIL PROTECTED]
Book:    http://www.servlets.com/book
2.0 to 2.1: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html
2.1 to 2.2: http://www.javaworld.com/jw-10-1999/jw-10-servletapi.html

___________________________________________________________________________
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