• 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
WOLongResponsePage and EOF task
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOLongResponsePage and EOF task


  • Subject: WOLongResponsePage and EOF task
  • From: Jonathan Rochkind <email@hidden>
  • Date: Tue, 23 Mar 2004 14:03:30 -0600

The problem with using a WOLongResponse page with an EOF task that uses the session().defaultEditingContext(), is that if the long running task keeps the session().defaultEditingContext() locked, then the WOLongResponse page can't get in to check it's status.

What if, in my long running task which is doing a variety of statements involving EOF, I just periodically call:
session().defaultEditingContext().unlock();
session().defaultEditingContext().lock();


Just like that. To give the WOLongResponse page a chance to get in and do it's stuff, if it's waiting.
Is this a good idea?


Another question: I've _never_ been able to get the "access to EOF object without lock" warning to actually appear in my log. Can anyone supply a formula for turning on this type of logging, that is actually demonstrated to work for them, in OSX WO 5.2? (5.2.1, I'm afraid, but I don't think anything relevant probably changed from .1 to .3)

--Jonathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: WOLongResponsePage and EOF task
      • From: Christian Pekeler <email@hidden>
  • Prev by Date: RE: Change Object in EOSharedEditingContext
  • Next by Date: Re: WOLongResponsePage and EOF task
  • Previous by thread: WOUnitTest Release 7
  • Next by thread: Re: WOLongResponsePage and EOF task
  • Index(es):
    • Date
    • Thread