what do you mean by "run"?

By definition, a servlet works in a request/response kind of way. If you have code
that you want to run in a servlet, and you want the code to run continuously, I'd
say you generate a request to the servlet at server startup, and write the servlet
code so that it never completes the request. Of course, you'd have to config the
server so that it doesn't timeout the request, which gets you into trouble in cases
where you do want other requests to time out. Please give more insight in what it
is that you're trying to do with this, so that maybe I can give more to the point
advice

good luck
Rob

Ganesh MohanRao wrote:

> Hi,
>
> Please tell me how to make a Servlet Run till the lifetime of Webserver.
>
> Whenever the webserver starts, Servlet needs to start and should run till
> the Webserver shuts down.
>
> Please help me.
>
> Thanx.
>
> Ganesh
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to