"Cron" a method
"Cron" a method
- Subject: "Cron" a method
- From: Drew Thoeni <email@hidden>
- Date: Thu, 27 Jan 2005 07:07:24 -0500
Hi All,
I'm trying to set up a process that would call a method at a periodic
interval. Two quick examples:
1) I have data that changes in the database frequently (every few
seconds) and I'm displaying on main. Potentially hundreds of users will
load the main page potentially several times per session. I'd like to
store this read-only data at the application level (to reduce DB calls)
but have it automatically refresh at the application level every few
seconds.
2) I have a timestamp on objects (in the ec or at the database) and I'd
like to call a method every minute to interrogate these objects to see
if their time has come. If the timestamp is older than now, and an
action has not already been taken for that object, I want to kick off
that action.
So, I think, I'm looking for a way to "cron" these two methods. I'm
betting this has been done and searched the archives but no luck.
Regards,
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden