Forums Register Login

ejbFind[METHOD]() in bean class

+Pie Number of slices to send: Send
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?

thanks
[ July 26, 2005: Message edited by: Rudy Harianto ]
+Pie Number of slices to send: Send
Dear Rudy,
I believe that the question didn't mention whether the entity bean is CMP or BMP. If the bean is BMP, the answer would be correct.

Best regards,
+Pie Number of slices to send: Send
 

i'm confuse, why does E correct?



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".
+Pie Number of slices to send: Send
 


Originaly posted by Nadeem Awad:

I believe that the question didn't mention whether the entity bean is CMP or BMP. If the bean is BMP, the answer would be correct.



but BMP entity bean is not covered in the exam objectives. And i've read somewhere that we can always assume that all the questions are CMP entity bean, unless it was said explicitly.
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 728 times.
Similar Threads
Doubt on which type of bean to choose
Question on Bean state
HFEJB final mock exam Question
Coffee Cream on EB - Mistakes/Doubts #4
ejbCertificate mock exam question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:27:46.