• 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: Chuck Hill <email@hidden>
  • Date: Thu, 5 Feb 2009 20:15:51 -0800


On Feb 5, 2009, at 7: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.

It makes database access single threaded within one EOF stack. That is not all of WO by any means. And one application instance can have multiple stacks.



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?

As long as it does not touch sessions or EOEnterpriseObjects or anything else EOF related, yes. If you want to touch sessions or EOF, you need to be careful in how you do locking to avoid deadlock and data inconsistency.


Chuck


-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ 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: 
 >WO 5.4 - can I multi-thread a WO app that uses EOF (From: Karthik N <email@hidden>)

  • Prev by Date: WO 5.4 - can I multi-thread a WO app that uses EOF
  • Next by Date: Re: plain jar utility app, with wonder?
  • Previous by thread: 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