-----Original Message-----
From: Shawn Quinn [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 4:10 PM
To: JDJList
Subject: [jdjlist] RE: Daemon ThreadEmma,
I'm not familiar with Jaguar, but by the servlet spec you can set up a
servlet to start up automatically within a web application by giving it a
"load-on-startup" value in the "web.xml" file. The application server will
then automatically instantiate your servlet and invoke its "init()" method
when the server starts up. i.e. :
<servlet>
<servlet-name>StartupServlet</servlet-name>
<servlet-class>com.blah.blah.StartupServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
-ShawnTo change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm-----Original Message-----
From: Tom Jordan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 9:36 AM
To: JDJList
Subject: [jdjlist] RE: Daemon ThreadIf you are using JDK 1.3 or above, use java.util.Timer and java.util.TimerTask.
The Timer class lets you schedule tasks at precise intervals just like cron.To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm
Tom
-----Original Message-----
From: Janakiraman Nellissery [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 8:51 AM
To: JDJList
Subject: [jdjlist] RE: Daemon Thread
Cron would work fine on Unix platforms..but what about windoze users??
I think if u run an RMI server and let that manage the polling and
mailing mechanism ur job should be done..Since u need to get that poller
running/shutting down whenever ur webserver starts, u can have an ( possibly
ANT Script)
to start and stop these together as necessary.
HTH
-Janaki
-----Original Message-----
From: Jason Bell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 5:31 PM
To: JDJList
Subject: [jdjlist] RE: Daemon Thread
I would get the operating system to do the scheduling, not the Java program.
If you have a Unix type system then read up on "cron"
Jase Bell
-----Original Message-----
From: Emmanuel Eze [mailto:[EMAIL PROTECTED]]
Sent: 03 September 2002 11:35
To: JDJList
Subject: [jdjlist] 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 change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm
THIS TRANSMISSION, INCLUDING ANY ATTACHMENTS OR FILES,
CONTAINS AIRNET COMMUNICATIONS CORPORATION CONFIDENTIAL
AND PROPRIETARY INFORMATION WHICH MAY BE OTHERWISE EXEMPT
FROM DISCLOSURE.
The information is intended to be for the exclusive use of the individual
or entity named above. If you are not the intended recipient,
be advised that any disclosure, copying, distribution or other use
of this information is strictly prohibited. If you have received this
transmission in error, please notify us by telephone at 1-321-984-1990 or
by email to [EMAIL PROTECTED] immediately and do not read, print
or save this information in any manner.
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm
