> -----Original Message-----
> From: Emmanuel Eze [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 03, 2002 3:34 AM
> 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.

The first thing you should do is read the servlet specification.  I don't
know whether Jaguar supports version 2.2 or 2.3.  Hopefully it's 2.3.

The "servlet" element in the "web.xml" deployment descriptor has an optional
"load-on-startup" element.  The presence of this element specifies that this
servlet will be created and "init"ed on startup of the application (which
should happen when the web server starts).

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to