• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejbFind in entity beans

 
Ramakrishna Allam
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As kathy said, exam objectives are only regarding CMP . No BMP . There is a Q in ejbcertificate.com :
Q:Identify all correct requirements for an entity bean class?
1. The ejbPostCreate() must not be declared as final and static but must return the primary key.
2. Business methods defined in the entity bean class can start with the prefix 'ejb'.
3. The Container must specify a primary key class in the deployment descriptor.
4. The ejbFind method must have an ejbFind prefix, declared public and must throw FinderException.
5. The Container must define a query for each finder or select method except findByPrimaryKey(key).
Ans(according to author is 4) ...
(But since the exam doesnt contain BMP,) entity bean class(a CMP one) will not have to define(or even declare) ejbFind methods (Spec. page 191).
Or is there anything like bean class can optionally declare ejbFinds ? i do not think so .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic