aspose file tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes FinderException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply 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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: FinderException
 
Similar Threads
Home stub class
Remote and Local Interfaces
HF confusion page 403
Why multiple-entity finders must declare FinderException?
Access to EJBObject in ejbCreate() of Stateless bean