wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
I agree. Here's the link: http://aspose.com/file-tools
subject: How many find method in CMP?
Similar Threads
CMP bean with a View(Not Table)
Whether to use BMP or CMP
CMP Entity Bean
How do we roll back a transaction in CMP?