Mike Whittaker wrote:
>
> When a servlet is deployed, what is its life cycle?
>
<URL:http://java.sun.com/products/servlet/index.html>
Follow the "Technical Resources" link to "Fundamentals of
Java Servlets" Tutorial. There's a section on the servlet
lifecycle. The Servlet Spec (available from the "Download
Specifications" link on the above page) also has good
info. Or search the archives using a term like "lifecycle".
> Is it reexecuted on every url access?
>
Generally not, but it's possible.
> The counter question of late made me think that it runs
> always, otherwise the counter would unpredictably be
> reset.
>
The counter may be unpredictably reset. Simple containers
probably will just leave the servlet running, but there's
no guarantee. Servlets can be taken in and out of service
at the whim of the servlet engine (but you always get
notified when it happens, so you have a chance to save or
load your servlet's state to/from persistent storage)
--
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