hello all.

Well I have a component which was using the session defaultEditingContext, so what I did was that I create an instance variable in that component of ERXEC, then I replace the displayBoard = (DisplayBoard) EOUtilities.createAndInsertInstance(session().defaultEditingContext(), "DisplayBoard");

for this :

displayBoard = (DisplayBoard)ERXEOControlUtilities.createAndInsertObject(
                                        myEditingContext, "DisplayBoard");

then I got the following message when running the application,

Error: java.lang.IllegalStateException: You must enable the EC unlocker if you want to coalesce autolocks. Reason: You must enable the EC unlocker if you want to coalesce autolocks.

I looked inside the methods of myEditingContext, which BTW is an instance of ERXEC, and found the following,

 myEditingContext.setCoalesceAutoLocks(false);

then the app run fine, I change the paramter of the above method to true and it kept working, so my questions are:

Why that error came up?,  what does it means the coalesce auto-locks,  ?
And what that setCoalesceAutoLocks(boolean) method do?. (Iguss this questions cill be answered if the above is) :P

and third, did I fix the error properly or I was just lucky, :P

Regards

Gus




 _______________________________________________
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