• 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
Re: Multiple instances and background batch threads.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple instances and background batch threads.


  • Subject: Re: Multiple instances and background batch threads.
  • From: Alan Zebchuk <email@hidden>
  • Date: Sun, 19 Oct 2008 11:48:35 +0300

Another way to do this would be to use the Quartz Scheduling API (http://www.opensymphony.com/quartz/ ), and to use the JDBC Job Store.

We use this extensively in our applications to handle this scenario.

Alan

On 9-Oct-08, at 2:49 AM, Q wrote:

I have a scenario where I need my application to periodically fire off background batch tasks in a separate thread, but only need one of the possible instances to perform this task at any given interval. What technique do people normally use with WO to perform this sort of election/locking between instances so that only one of them at a time ever attempts to do the work?


-- Seeya...Q

Quinton Dolan - email@hidden
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



_______________________________________________
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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Multiple instances and background batch threads. (From: Q <email@hidden>)

  • Prev by Date: Re: do you want to blow your mind?
  • Next by Date: Re: do you want to blow your mind?
  • Previous by thread: Re: Multiple instances and background batch threads.
  • Next by thread: Confusing lock error solved, but now a restoreSessionWithID lock issue
  • Index(es):
    • Date
    • Thread