posted 18 years ago
Simply put, Both ejbSelect and ejbFinder methods allow you to query the database via EJB-QL. ejbSelect will be used internally (by the bean class) and will NOT be allowed to be invoked by the client. Whereas the ejbFinder methods are allowed to be invoked by the client (and hence are declared in the home interface).
For example, if you have exposed the following methods to the user:
findSouthAustralianUsers() and findVictorianUsers()
interally these finder methods can refer to a ejb select method findUsersByState()
One more difference is that ejbFinder methods can only return the component interface or a collection of the component interface (either java.util.Collection or java.util.Set)
wheras ejbSelect methods can return an Object as well (someone please confirm this).
Cheers!
MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)