this question is taken from SCBCD tutorial on IBM Section 8. CMP entity bean lifecycle..
Question 1: Select all the methods of an entity bean class that have a matching method in their home interface. Choices: � A. ejbCreate<METHOD>() � B. ejbSelect<METHOD>() � C. ejbLoad<METHOD>() � D. ejbRemove<METHOD>() � E. ejbFind<METHOD>()
Correct choice: A and E
i'm confuse, why does E correct? since from my understanding ejbFind<METHOD>() must not even mention in the bean class that we wrote! what does it mean by BEAN CLASS anyway? does it the abstract class that we wrote? or does it container generated class? if the question like this show up, what should we answer?
The EJB specification 10.7.3 Page 199 under the responsibilities of the container provider says "For each find<METHOD>(...) method in the remote home interface or local home interface of the entity bean, there must be a corresponding ejbFind<METHOD>(...) method with the same argument types in the concrete entity bean class."
so The "bean class" would be the concrete bean class that is generated by the container. And I think you would say that the answer stands as correct based on this specification. And it is mentioned under the title that says "container providers responsibility".