Geeta Ramani wrote:
>
> Since code in the init() method is executed *exactly* once at
> servlet initialization time (*not* once per request)
> ...
> Instead you want to initialize the ConnectionPool in the init
> method ...
>
A servlet's init() method can get called lots of times, as
long as there is a destroy() in between. It's actually legal
(although a little silly) for the container to call init(),
service(), destroy() on every single request, so you'e got
to make sure to release the connection pool in the servlet's
destroy() method.
--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com
___________________________________________________________________________
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