Here's a restatement of the question:

In the servlet lifecycle, does the servlet container always all the init()
method when it re-activates the servlet?

sampathkumar rangarajan wrote:

> Hi,
>
> I could not get what you actually in need of.If you
> can brief me,I can help you.
>
> But you can information about this will available
> on
> www.servletcentral.com
> www.servletsource.com
> www.jguru.com
>
> Thanks
> Sai
>
> --- George Ludwig <[EMAIL PROTECTED]> wrote:
> > 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
> >
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> ___________________________________________________________________________
> 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

Reply via email to