Thanks Sanjeev. I also had a similar requirement and verified your methodology and the same works fine without hassles
Rgds Muthu > -----Original Message----- > From: Sanjeev Verma [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, September 05, 2002 10:07 AM > To: [EMAIL PROTECTED] > Subject: Re: Daemon Thread > > Hi Emma > > I did this before for a project, in which we had to mail out > weekly/fortnightly/monthly reports to the management thru' the web app. > > We created a singleton java class, which spawned a thread to do the this > job. Regarding initializing this class on web server start up, you can > start > this thread inside the init method of a servlet, and let that servlet > <load-on-startup> inside the web.xml. That way, we found it very stable > and > reliable. > > Regards > Sanjeev > > -----Original Message----- > From: Emmanuel Eze [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 03, 2002 4:05 PM > To: [EMAIL PROTECTED] > Subject: Daemon Thread > > > Hi All, > > I need to develop a daemon thread that wakes up at a defined interval to > send email based on some conditions. My web application is purely written > in > JSP. > > I am trying to choose between writing the daemon as a Servlet or a Java > Application. I need to get this daemon running as soon as the web server > is > started. My web server is Jaguar CTS 4.0 from Sybase. > > Can somebody pls advise me on whether to use servlet/java application? > Pls > I'd like to know how I can get the daemon to start with the web server. > > Thanks > > Emma > > __________________________________________________________________________ > _ > 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 ___________________________________________________________________________ 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
