long-term timed events possible?
Posted: Thu Jul 05, 2007 6:37 pm
This may be better served by a Java forum, but since I'm not sure what I'm looking for, I'll start here.
I want to create a timed event of sorts, which would be initiated by a user action, but that would not execute for a few days. This would obviously have to be server-side as the client session would be terminated before the event happens. Here's an example of something this could be used for:
1. user submits a page
2. (backend) timed event starts, time is set at 3 days, at which time the user will be emailed with a reminder.
3. On exactly the 3 day mark, a function fires an email to remind the user of something.
I know I could do this by checking if it's been 3 days yet every time someone loads some page, but that won't get me the to-the-second accuracy that I need. This type of thing, I imagine, would also be used by companies like ebay to know when an auction ends (and when to email the winner, etc).
Can anyone point me in the right direction?
I want to create a timed event of sorts, which would be initiated by a user action, but that would not execute for a few days. This would obviously have to be server-side as the client session would be terminated before the event happens. Here's an example of something this could be used for:
1. user submits a page
2. (backend) timed event starts, time is set at 3 days, at which time the user will be emailed with a reminder.
3. On exactly the 3 day mark, a function fires an email to remind the user of something.
I know I could do this by checking if it's been 3 days yet every time someone loads some page, but that won't get me the to-the-second accuracy that I need. This type of thing, I imagine, would also be used by companies like ebay to know when an auction ends (and when to email the winner, etc).
Can anyone point me in the right direction?