Hi All,
This question is from HFSJ mock exam 11 Q.9
Which are DD elements that provide JNDI access to J2EE components?
(Choose all that apply.)
A. <ejb-ref>
B. <entity-ref>
C. <ejb-local-ref>
D. <session-ref>
E. <ejb-remote-ref>
The correct answer given is A, C (explanation : (
servlet spec 9.11)-In addition, <ejb-local-ref> also provides the web app creator with a JNDI reference to
J2EE components.)
but I feel the following code snippet will be used for declaring the JNDI access.
<env-entry>
<env-entry-name>rates/discountRate</env-entry-name>
<env-entry-type>java.lang.Integer</env-entry-type>
<env-entry-value>10</env-entry-value>
</env-entry>
I don't see any of these tags available in the question options. Can someone please explain?
Thanks
Shobhan