Consider using a connection pool.
Pass a few connections around, avoid the problem; save some overhead.
Jay A. Schmitendorf
----- Original Message -----
From: "Mauricio Nu�ez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 15, 2000 6:34 AM
Subject: Where to put JDBC Connections? doPost or Init
> Hi everyone:
>
> I have the following question:
>
> What is the best place to open a connection in a servlet: DoPost or Init?
> My question try to solve a problem with Oracle, where we have many (+100)
> open connections, and Tomcat is not closing the open connections,
aparently
> because the method Destroy is not executed.
>
> 2 Linux Redhat 7.0, 1 with Oracle, 1 with Apache+Tomcat 3.1
>
> Thanks
>
> Att.
> Mauricio
>
>
___________________________________________________________________________
> 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
___________________________________________________________________________
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