• 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: Switching WebObjects to MultiThreading mode/ EOF Layer synchronized?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching WebObjects to MultiThreading mode/ EOF Layer synchronized?


  • Subject: Re: Switching WebObjects to MultiThreading mode/ EOF Layer synchronized?
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 23 Mar 2007 11:04:07 -0700

Hello Maurice,


On Mar 23, 2007, at 3:00 AM, Maurice Hüllein wrote:

1. I was pointed to the parameter multithreadingOn, which shall switch Webobjects
to the ability to work a request in its own thread. Althoug I searched the Dev-guides
and the web I could find no documentation of this mode. Can anyone send me a
reference to it?

You can launch with application with - DWOAllowsConcurrentRequestHandling=true (see the Deployment docmentation) or you can add this to your Application constructor:


setAllowsConcurrentRequestHandling(true);



2. If WebObjects works multithreaded, is the EOF-Adapter for the object-relational
mapping implicit synchronized? Or do I have to care about that myself? For this too,
I would like to find a reference.

You will be OK if you are only using session's defaultEditingContext (). If you are creating your own editing contexts or doing anything with many of the classes in EOAccess then you need to be locking. This is true even if WO is NOT multi-threaded. See http:// en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ Context_and_Database_Locking



Chuck

--

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: 
 >Switching WebObjects to MultiThreading mode/ EOF Layer synchronized? (From: Maurice Hüllein <email@hidden>)

  • Prev by Date: Re: WOWODC
  • Next by Date: Re: Please help me!
  • Previous by thread: Switching WebObjects to MultiThreading mode/ EOF Layer synchronized?
  • Next by thread: WOWODC
  • Index(es):
    • Date
    • Thread