Declare it in the <start-on-startup> (or whatever it's called) element space in web.xml.
Mark -----Original Message----- From: Nancy Crisostomo [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 5:21 PM To: [EMAIL PROTECTED] Subject: Servlet daemon Hi!! I would like to know if is it possible to have a servlet wich was inited before it was requested? I need to have a servlet that looks like a "daemon": always verifying the last access to an application... it will be working all the time the servlet-engine was up. Does it have to look like this? : void init(){ while(true){ .... verifying.... } } Could you please help me? or give me some advice? Thanks in advance. Regards, Nancy.. ___________________________________________________________________________ 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
