• 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

Exception question from HFEJB

 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shrapen on Page 557

Client calls remove() on a bean that's already been removed.

I thought answer is NoSuchObjectException / NoSuchLocalObjectException.

Whereas as per the book answer is RemoteException/ EJBException.

As per the explanation for NOSuchObjectLocalException on on page 552, I feel the answers should be NoSuchObjectException / NoSuchLocalObjectException


Can someone please tell me if my answer is correct? If not please explain.

Thanks!
Gemini
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Gemini,

You are right. But remember that NoSuchObjectException is a (extends) RemoteException and that NoSuchObjectLocalException is an (extends) EJBException, so the book is not wrong treating them as RemoteException and EJBException.

Regards,
Stefan
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Stefan!

I got it!

I appreciate you taking time to answer my questions even after completing your exam.

Gemini
 
Oh sure, it's a tiny ad, but under the right circumstances, it gets bigger.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic