I have a servlet that connects to a jdbc datasource. Normally, I would
instantiate the connection in the servlet init() method. However, recent
discussion on this list has informed me that the servlet container can destroy
and recreate the servlet at will.
What does this mean in regard to establishing a jdbc connection? If the servlet
container invokes the init() method when it re-instantiates the servlet, I
guess it's still fine to establish my connection in the init() method. However,
if it does not, then I need to rethink my strategy.
Is there any common wisdom on this? Where can I learn more about the latest
thinking on the servlet life-cycle?
TIA,
George
___________________________________________________________________________
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