thx sawan.
Let me clarify if my concept is correct:
NoSuchEntityException will be thrown when the entity is not there in the persistent storage.
If I change that statement to:
1.
A remote client invokes a method on an entity bean which *its persistent storage has been deleted by other means*.
--> Is it possible the client recieve "NoSuchObjectException" (Since "NoSuchEntityException" is for local client only) ?
In this case, the bean should throw "NoSuchEntityException", the container catch it and rethrow as "NoSuchObjectException" to the client, am I correct ?
2.
A *LOCAL* client invokes a method on an entity bean which *its persistent storage has been deleted by other means*.
--> Will the local client recieve "NoSuchObjectLocalException" or "NoSuchEntityException" ?