• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mock exam question

 
sonali rao
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mock exam question: which of the follow methods must the bean provider implement in an entity bean class? 1.ejbFind 2.ejbSelect 3.unsetEntityContext 4.ejbLoad 5.setRollbackOnly
 
Sudhir V
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
3,4
 
Janne Karhu
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With CMP, you must only implement 3 and 4, but you can also implement ejbSelect -methods. However, the name of ejbSelect -method can never be just "ejbSelect". With BMP, you must implement 3 and 4 (as with CMP), but you could also implement finder methods (if you have specified finders other than findByPrimaryKey in your home interface). Again, the name of the finder cannot be "ejbFind".
So the answer is clearly "3 and 4".

Originally posted by sonali rao:
Mock exam question: which of the follow methods must the bean provider implement in an entity bean class? 1.ejbFind 2.ejbSelect 3.unsetEntityContext 4.ejbLoad 5.setRollbackOnly
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic