Hi there, from inside of a R/R, I need to do something (essentially just log out some attributes; no changes) with some objects of other editing contexts.
To prevent deadlocks, of course I cannot lock those other ECs. Since an attribute access does lock, I am using localInstanceIn, essentially like this: === for (ERXEC otherEC in listOfOtherECs) { // works all right, my method listOfOtherECs never fails def otherEO=neededEOInEC(otherEC) // works all right, my method neededEOInEC never fails and returns an EO in otherEC def myEO=otherEO.localInstanceIn(session.defaultEditingContext) ... work with myEO as needed ... } === The catch is, localInstanceIn locks, too, and thus I _do_ get the deadlocks which I needed to prevent :( Is there a way to dodge the darned locking of the other ECs? Thanks, OC _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com