• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't get locking exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get locking exception


  • Subject: Re: Can't get locking exception
  • From: Mike Schrag <email@hidden>
  • Date: Sat, 10 Jan 2009 09:13:48 -0500

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.

ms
 _______________________________________________
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

  • Follow-Ups:
    • Re: Can't get locking exception
      • From: Chuck Hill <email@hidden>
    • Re: Can't get locking exception
      • From: Jeff Schmitz <email@hidden>
References: 
 >Can't get locking exception (From: Jeff Schmitz <email@hidden>)

  • Prev by Date: Re: Manipulating large amounts of data with EOF - feedback, anyone?
  • Next by Date: problem opening projectbuilder
  • Previous by thread: Can't get locking exception
  • Next by thread: Re: Can't get locking exception
  • Index(es):
    • Date
    • Thread