• 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
Need some advice on handling EO validation errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need some advice on handling EO validation errors


  • Subject: Need some advice on handling EO validation errors
  • From: Greg Lappen <email@hidden>
  • Date: Fri, 07 Dec 2007 10:48:11 -0500

Hi all,

I just recently ran into an issue where my application tried to save a new object to the database, the save failed, and every subsequent save failed with the same error. It seems that WebObjects maintains a queue of updates/saves to write to the database, and when one fails, it essentially clogs up the queue because WO keeps trying to save it eveytime someone calls saveChanges() on an editing context. What I'd like to do is set up a global exception handler in my application that runs whenever an exception is not caught by my code, and in that error handler I want to reset the whole EnterpriseObject stack - the cache, the update/save queue, everything - so that other work in the application can continue and not worry about cache corruption or anything like that.

Is this possible to do?  Anyone know how to do it?

Thanks so much for any help.

Greg
_______________________________________________
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: Need some advice on handling EO validation errors
      • From: Chuck Hill <email@hidden>
    • Re: Need some advice on handling EO validation errors
      • From: Alan Ward <email@hidden>
  • Prev by Date: EO Caching
  • Next by Date: Re: Need some advice on handling EO validation errors
  • Previous by thread: Re: EO Caching (2)
  • Next by thread: Re: Need some advice on handling EO validation errors
  • Index(es):
    • Date
    • Thread