• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Checked exception - NoSuchObjectException & ObjectNotFoundException

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
In HFE Page 553, It says that NoSuchObjectException & ObjectNotFoundException are checked expections. But I can't see any of the home or component interfaces of the EJBs declaring them. Can anybody please shed some light?
Regards
Mini
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Consider a method declaration such as this in a remote home interface.
public Customer findByPrimaryKey(String key) throws RemoteException, FinderException
NoSuchObjectException IS-A RemoteException and ObjectNotFoundException IS-A FinderException. The container may be encouraged to throw the more meaningful NoSuchObjectException and ObjectNotFoundException rather than their superclasses, but both are legal due to inheritance.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic