On Jan 10, 2009, at 6:13 AM, Mike Schrag wrote:

What could be causing this?
No, the two ec's in your example will properly update (you're not holding an ec lock across requests, so the first EC is causing the second EC to update). The easiest way to force an optimistic lock is to go into your edit form on an EO, and then update the database manually with SQL commands in the background. This will cause your snapshot cache to be out of sync. The only way to get it to happen INSIDE your app would be to have two EC's attempt to change the value while both are locked.

Or to have each EC created using a different EOF stack. EOF won't sync across stacks within the same instance (though doubtless Wonder has something to provide this if desired).

Chuck

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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