Nancy Cris�stomo wrote:
>
> I would like to know if is it possible to have a servlet wich
> was inited before it was requested?
> 

 Servlet.init() is always called before the first request. If
you need to make sure that init() is called on container
startup, then take a look at the <load-on-startup> tag
in web.xml.


> I need to have a servlet that looks like a "daemon"
>

 That isn't really a good idea (and you definitely can't
do it the way your pseudo-code suggests). Depending on
exactly what you're trying to do, you might find this
informative:

 http://www.distributopia.com/servlet_stuff/background_threads.html


-- 
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

Reply via email to