So I have a Callable task that takes an EOFetchSpec. The FetchSpec is built in the regular R-R context, passed to the Callable and the Callable is dispatched. The Callable uses the FetchSpec to fetch the objects in ots own background EC and perform the processing task. The concern I have is that the qualifier in the EOFetchSpec will probably have some key value qualfiers where the "value" is an EOEnterpriseObject, so I am concerned about EditingContexts. Specifically I am using Wonder's safelocking ERXEC's everywhere, so I know that when the EOFetchSpec and its Qualifier(s) are touched in the background thread, those EOKeyValueQualifier value EO ivars will be in an unlocked ec. What is the best way to elegantly handle this?

(1) Can those EO object references be converted to faults which in turn are used in the qualifier and fetchspec construction? ...... or (2) should I just Serialize the fetchspec before passing to the background thread and deserialize it there? ..... or (3) stuff those EO values into the Callable's editing context before constructing the qualifier (seems ugly)? ..... or (4) ......?

I had thought EOQualifier might be clever enough to just store globalIDs of EOs passed in the value param of the constructor, but Jad indicates otherwise.

Any suggestions?

-Kieran


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to