Hi all,
4. Enterprise bean instances obtain the values of the environment entries from the enterprise bean's deployment descriptor.
I think 4 is incorrect because Enterprise bean instances do
not obtain the values of the environment entries from the enterprise bean's deployment descriptor but rather from the its special environment (i.e. its jndi subcontext "java:comp/env"). Environment entries are defined in the deployment descriptor, once ejb-jar is deployed into the app server environment entries get associated with the jndi names, and these are the names that
ejb instances use to look environment entry value up.
3. The deployer sets and modifies the values of the environment entries by editing the enterprise bean's deployment descriptor.
I think 3 is a correct answer as deployer must ensure that <env-entry-value> contains a legal value. Please see paragraph 20.2.3 on page 415
All right, my answers to this question would be 1, 3 and 5.