• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

HF Clarification on Exception handling..

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic