CMP finders findByPrimaryKey(), findAll() and findBy are generated for you by the container during deployment.
The specifics of the code that handles the finders are part of the JBoss source.
Thanks, for your answer Yuha. Am I able to define finders that are to be genarated ?
Yes. See the JAWS Documentation.
Which version of jboss automatically generates the finder methods?
I'm using 2.4.4 & my findByPrimaryKey is generated & works fine, but my findByOwner (where owner is a cmp field on the ejb) raises a finder exception. If i define it in the jaws.xml, it works fine. Am i doing something wrong? or using the wrong version?