Please go through the following question from one of the mock exams.
Q) A typical use of ejbHome and ejbSelect method would be? Select 2 Answers A. use ejbSelect methods within ejbHome methods to return entities B. use ejbSelect methods to access fields of a bean instance C. use ejbHome methods to perform operation not specific to a entity instance D. Use ejbHome methods to initialize entity bean instance variables
The Ans: given are B and C
I feel that A, C are correct.
Can any one please explain why option B is correct? Thanks in Advance.
B. use ejbSelect methods to access fields of a bean instance
Looking at the option, it is not clear if it is referring to cmp fields or static final fields. Anyway, ejbSelect method can still access cmp fields, when called from business methods that are defined in component interface.