• 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
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Exception question from HFEJB

 
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
 
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
 
I didn't like the taste of tongue and it didn't like the taste of me. I will now try this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic