From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]On  
 
Can anybody provide a nice rational explation as to why Entity beans don't have an "isDeleted()" type method on them.
 
Someone else asked me that today, and all I could come up with was that it would be silly to use an EJB thats gone.  Either you have it, and it's OK, or it throws an exception when you try to use it.
 
Unfortunately, "it's silly" wasn't a terribly convincing arguement.  If someone can provide a clearer explanation (or better yet, a reference to a paper that describes it), I would appreciate it greatly. 
 
I would argue that it's your friend who should come up with a scenario where they might need that.  And then you can answer them that calling a method on an EJB that has been removed will trigger a NoSuchObjectException.
 
--
Cedric
 

Reply via email to