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:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to