Hi, I'm trying to find out about these finder methods, and I've stumbled upon an oddity here:
I created two finder methods, using the following XDoclet tags: * @ejb.finder * signature="java.util.Collection findByName(java.lang.String name)" * * @ejb.finder * signature="java.util.Collection findBySaint(java.lang.String saint)" The difference between them, is basically that there IS a "name" field, but there is NO "saint" field in the EJB... What happens is that calling the findByName method results in the expected behaviour (ie all entities with the given name are returned), but the findBySaint method results in a FinderException being thrown... This all looks very logical to me, since of course, the container cannot know what I mean by "findBySaint"... What isn't logical though, is that JBoss complains *twice* when deploying: 20:44:38,632 INFO [EJBDeployer] Bean : Persoon Method : public abstract Collection findByName(String) throws FinderException, RemoteException Section: 10.5.6 Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor. 20:44:38,633 INFO [EJBDeployer] Bean : Persoon Method : public abstract Collection findBySaint(String) throws FinderException, RemoteException Section: 10.5.6 Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor. >From my above experiences, I agree that JBoss should complain about the findBySaint method, but if it complains about the findByName method as well, then why is it working? Thanks, Hans
signature.asc
Description: This is a digitally signed message part