This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes FinderException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "FinderException " Watch "FinderException " New topic
Author

FinderException

sanjeev mehra
Ranch Hand

Joined: Feb 12, 2001
Posts: 93
Simple question,
HF page 274 Last paragraph
Note: a client will not get an exception if a multi-entity finder can't find any mathces! Instead, the client will still get a Colection, but it simply be empty.

HF page 275
public Collection findByCity(String city) throws FinderException, RemoteException;

pls. let me know what exactly I am missing here.

Thanks.
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Find methods that return an Enumeration or Collection type (multi-entity finders) return an empty collection (not a null reference) if no matching beans can be found or throw a FinderException if an application error occurs.
 
wood burning stoves
 
subject: FinderException
 
Similar Threads
Remote and Local Interfaces
HF confusion page 403
Home stub class
Access to EJBObject in ejbCreate() of Stateless bean
Why multiple-entity finders must declare FinderException?