This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A Question from EJBPlus

 
Steven Gao Song
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, everyone

I wanna confirm the answer of a question in EJBPLUS here.

Identify the correct statements regarding the container's implementation of a finder method.

Select 1 correct option.
a) It delegates the call to ejbFind<method> written by the developer of the bean class.

b) Caller of the finder method must always be prepared for FinderException.

c) Caller of the finder method must always be prepared for ObjectNotFoundException.

d) The bean class must provide an abstract ejbFind<method> for each

e) None of these is correct.


The correct answer is (b). But I don't think so.
Can you give some opinion?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All finder methods must declare a FinderException, whether it returns a single element, or a collection. So the client has to catch that application exception in either case.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic