I have a doubt in Entity Bean Home Interface finder methods. *Finder methods which returns a remote component i/f throws finder exception and *Finder methods which returns a collection doesnt throw finder exception instead it will be empty. *But in HFEJB pgno 275 it is given that even the finder methods with collection as return type throws finder exception.
It is clearly given that if the finder methods which return collection doesnt find anything it will return empty and not exception. so i think it should not throw finder exception. But in book it throws finder exception
FinderException is used to report a failure to find the requested EJB objects. Ans that's why we must need to add it in throws clause of finder method signature.
We must include this exception in the throws clause of all find methods that we declare in the entity bean's home interface and all the ejbFind (in the case of a BMP bean) and ejbSelect methods that we declare in the bean class.
findXXX() of Entity Bean's Home interface ejbFindXXX() of Entity Bean class ejbSelectXXX() of Entity Bean class
------- SCJP 1.4, SCWCD 1.4, SCBCD 1.3, (SCEA Part I preparing......)
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss