• 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: WO 5.4 - can I multi-thread a WO app that uses EOF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO 5.4 - can I multi-thread a WO app that uses EOF


  • Subject: Re: WO 5.4 - can I multi-thread a WO app that uses EOF
  • From: Kieran Kelleher <email@hidden>
  • Date: Fri, 6 Feb 2009 09:36:19 -0500

You can have multiple EOF stacks by creating new EOObjectStoreCoordinators. Wonder has features that easily enables multiple EOF stacks and also for synchronizing changes between them in the same instance and across many instances.

I use java.util.concurrent stuff all the time for background operations using thread pool. Just don't pass EO's and ec's between threads .... pass EOGlobalIDs between threads and create, lock and unlock editing contexts in your background threads.

On Feb 5, 2009, at 10:09 PM, Karthik N wrote:

Hi,

I'm a WO 5.4 newbie. We have a WO app that uses EOF for db access. I believe this makes the WO inherently single-threaded.

We have this new requirement wherein, we want to have a thread-pool via java Executor within this WO app for non-EOF purposes to perform some asynchronous background tasks.

Is it safe to have such a thread pool without jeopardizing the WO app in any way?

Thanks, Karthik
_______________________________________________
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

_______________________________________________ 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: WO 5.4 - can I multi-thread a WO app that uses EOF
      • From: "Ricardo J. Parada" <email@hidden>
    • Re: WO 5.4 - can I multi-thread a WO app that uses EOF
      • From: Anjo Krank <email@hidden>
References: 
 >WO 5.4 - can I multi-thread a WO app that uses EOF (From: Karthik N <email@hidden>)

  • Prev by Date: [JC] Time to vote!
  • Next by Date: Re: WO 5.4 - can I multi-thread a WO app that uses EOF
  • Previous by thread: Re: WO 5.4 - can I multi-thread a WO app that uses EOF
  • Next by thread: Re: WO 5.4 - can I multi-thread a WO app that uses EOF
  • Index(es):
    • Date
    • Thread