• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
"Cron" a method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"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


  • Follow-Ups:
    • Re: "Cron" a method
      • From: PA <email@hidden>
  • Prev by Date: Re: How To : Delegates
  • Next by Date: Re: "Cron" a method
  • Previous by thread: Re: getting distinct rows with a model fetch
  • Next by thread: Re: "Cron" a method
  • Index(es):
    • Date
    • Thread