• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF Clarification on Exception handling..

 
Stephen Selvaraj
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

In HF page 559, Scenario Summary..
#Client calls remove() on a bean thats already removed.
I expected java.rmi.NoSuchObjectException(remote) (or)java.ejb.NoSuchObjectLocalException (local)
but it says RemoteException for (remote) and EJBException(local).

Any explanation...
-Stephen
 
Jim Janssens
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The container is not required to throw that exception.
it *should* throw the NoSuchObjbectException. So EJBException/RemoteException is also correct
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic