• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic