I found one question on reflection API in HFEJB final mock exam.
Question is
When programming an entity bean class which technique(s) should be AVOIDED to ensure bean portability across all
EJB 2.0 containers? (choose all that apply)
A. changing a
thread's priority
B. Using the reflection API
C. Using wrapper classes
D. Using static nested classes
Ans is (A) & (B).
A is OK.
I am confused with option B.
yes, that's right that some of methods of reflection API we have to avoid.
But at the same time book is saying that getEJBMetaData() method in lcoal home interface (EJBLocalHome) is not required as we can use reflection API(Page 149). So, what's right we have to avoid reflection API or not?
Thanks
Imran