Re: Enterprise Object Caching
Re: Enterprise Object Caching
- Subject: Re: Enterprise Object Caching
- From: Guido Neitzer <email@hidden>
- Date: Fri, 25 Aug 2006 17:39:00 +0200
On 25.08.2006, at 17:05 Uhr, Miguel Arroz wrote:
What's the best way to detect a deleted object that has been
deleted in another app instance?
I don't know what the best way is. In a situation where you are
showing a list to the user, on a different instance a different user
deletes one of the objects you are showing and user 1 selects exactly
this from the list to do something with it and try to save it, you
get an EOGeneralAdaptorException.
I don't know whether there is any "good" way of handling this. In my
recent project I do inserts to the DB whenever an object is displayed
- so I instantly get a problem, when I select an object from a list,
that has been deleted from the DB. I catch the exceptions there and
throw my own "ObjectDeletedException" so a mechanism somewhere else
(higher in the chain of command - e.g. Application) can handle it.
As I'm using my own base framework which has list (sub component) and
edit (page level) components that are the base for every list and
edit / inspect page I build (and components for several other tasks)
this is no real problem because I have solved this problem once and
hopefully for most cases.
cug
--
PharmaLine, Essen, GERMANY
Software and Database Development
_______________________________________________
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