Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception question from HFEJB

 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • 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
 
Stefan Guilhen
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic