• 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
optimistic locking recovery
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

optimistic locking recovery


  • Subject: optimistic locking recovery
  • From: email@hidden
  • Date: Tue, 21 Oct 2003 11:44:12 CDT
  • Priority: 3 (Normal)

[demime could not interpret encoding binary - treating as plain text]
I try to update an EO. I get an optimistic locking exception.  By
examining the exception, I'm able to determine that the EO in question
has been DELETED from the db by another process.

What's the proper way to recover from this? Sure, I can give the user a
message saying such. But meanwhile, there are potentially other
references to the EO in my app, including as the destination of various
to-one and to-many relationships.

Ideally, I'd like to somehow fix my object graph so it realizes this EO
has been deleted. It should be as if I did a deleteObject() on the EO,
and all the various notifications are sent all around so the object graph
behaves as if the EO has been deleted. Except I can't actually call
deleteObject, because this will just raise another exception, since the
object does not in fact exist.

Any ideas?

--Jonathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: optimistic locking recovery
      • From: Art Isbell <email@hidden>
    • Re: optimistic locking recovery
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: download through Hyperlink
  • Next by Date: 404, 505 and Apache
  • Previous by thread: Re: download through Hyperlink
  • Next by thread: Re: optimistic locking recovery
  • Index(es):
    • Date
    • Thread