File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes How many find method in CMP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How many find method in CMP?" Watch "How many find method in CMP?" New topic

How many find method in CMP?

Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
In a CMP, we are not required to define the findByPrimaryKey() mehtod. How about the other finder methods? How do we specify them in the CMP? Is there any declarative way of telling the container?
Ramdhan YK

Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
Lakshmi Kishore
Ranch Hand

Joined: Aug 04, 2001
Posts: 51
Declare the Finder methods in Home interface as you do for findByprimarykey and describe those methods in the finder list of the deployment descriptor. you don't need to implement user defined finder methods any where for CMPs.

Thanks & Regards<br />glkishore
It is sorta covered in the JavaRanch Style Guide.
subject: How many find method in CMP?
It's not a secret anymore!