Re: Tracking EC Locking Issues when using MultiECLockManager and LockErrorScreamerEditingContext
Re: Tracking EC Locking Issues when using MultiECLockManager and LockErrorScreamerEditingContext
- Subject: Re: Tracking EC Locking Issues when using MultiECLockManager and LockErrorScreamerEditingContext
- From: Owen McKerrow <email@hidden>
- Date: Tue, 20 May 2008 09:29:44 +1000
In an effort to track down my locking issues I implemented the
LockErrorScreamerEditingContext but unfortunately its not going to
be as useful as I had hoped. I changed my MultiECLockManager to
use a LockErrorScreamerEditingContext but of course this means
that every lock will come from it, so when I get errors like the
one below, the original stack trace that it prints out will always
be from WOSession._awakeInContext.
So does anyone have any other suggestions as to how I go about
tracking down where this mismatched lock is coming from ?
A bit of a tangent, but I believe you mentioned that you're
migrating to Wonder recently. So, as ERXEC handles locking
automatically (with the correct properties defined) you might want
to limit your manual locking/unlocking to background/long-response
threads. ERXEC prints out an error log if an ec locking mismatch
occurred.
with regards,
--
Lachlan Deck
er.extensions.ERXApplication.useEditingContextUnlocker=true
er.extensions.ERXEC.defaultAutomaticLockUnlock=true
er.extensions.ERXEC.useSharedEditingContext=false
er.extensions.ERXEC.defaultCoalesceAutoLocks=true
Hi Lachlan,
Unfortunately its not this project thats going to Wonder ( it is in
fact a brand new project that we are starting to use wonder on).
Currently is not an option to convert the current project which is
causing the problem over to Wonder. Although I do have to ask, how
much "wonderizing" would I have to do to just get the ERXEC portion
of Wonder into a non wonder app ?
As part of implementing the LockErrorScreamerEditingContext I went
back through and removed all manual locks() and unlocks(). So in
theory the MultiECLockManager is now managing all the locks, with
every EC being created through the MultiECLockManager
newEditingContext method. So its somewhat worrying that any problems
with locking are occuring, but I'll keep digging.
Any other ideas out there ?
Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
People who prefer typing to pointing then seem to prefer acronyms to
save typing :-)
-Denis Stanton, On people using Command Line Interfaces
_______________________________________________
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