• 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!