tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berry, Layton" <lbe...@integralsys.com>
Subject RE: How to trigger events from tomcat?
Date Sun, 17 Aug 2003 18:59:14 GMT
Use the java.util.Timer class.  It has been around since Java 1.3.

-----Original Message-----
From: Sjoerd van Leent [mailto:svanleent@wanadoo.nl]
Sent: Saturday, August 16, 2003 8:04 AM
To: 'Tomcat Users List'
Subject: RE: How to trigger events from tomcat?


It seems the best way to do it is in a process or a thread, running
aside the regular web-application. This indeed uses an infinite loop to
check on times. You should be able to set this process as a low-priority
process, so it doesn't consume too much processor time.

I don't know if there is anything like a Timer in Java which you could
use, where it triggers on a timer interrupt. This should make it even
more lightweight.

Regards,
Sjoerd

-----Original Message-----
From: Prince [mailto:thelastprince@hotmail.com] 
Sent: donderdag 25 juli 2002 16:41
To: Tomcat Users List
Subject: How to trigger events from tomcat?

hi,

I am developing a web based appointment sheduler. the data is stored in
xml format.  i am using tomcat/jsp/servlet

for example if i added a new appointment , the program will ask for  a
reminder time. I am giving 08/08/2003 10:30
 so at 08/08/2003 10:30 an email should be sent to me saying that u have
an appointment.

how can i trigger for appointments. ie some method should be ther to
check if the appointment time is due on each second. Can i put an
infinite loop some how?

thanks n  regds
Prince



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message