posted 20 years ago
You get a NoSuchObjectException or NoSuchObjectLocalException are thrown if the object is removed( which could mean the entity bean object he has a reference to/or the entity the object is refereing to which means the clients reference is void now) and client is calling a method on it, where as the NoSuchEntityException is thrown by the bean to the container during one of the callbacks/methods where it could not complete the operation because the entity is removed from the database(underlying persistent store). Hope this helps.
Regards
Nileesha<br />SCJP 1.4, SCBCD, SCWCD.