Which code demonstrates the proper technique for changing the value of an enterprise bean’s environment property at run time?

Assume that a JNDI look-up of a String data type environment property has been performed with a
reference to the environment property held in appEnv. Which code demonstrates the proper
technique for changing the value of an enterprise bean’s environment property at run time?

Assume that a JNDI look-up of a String data type environment property has been performed with a
reference to the environment property held in appEnv. Which code demonstrates the proper
technique for changing the value of an enterprise bean’s environment property at run time?

A.
String newAppEnv = (String)appEnv.value(New value for environment property);

B.
EJB environment properties cannot be modified at run time.

C.
String appEnv = appEnv.value(New value for environment property);

D.
appEnv = (String)appEnv.modify(New value for environment property);



Leave a Reply 0

Your email address will not be published. Required fields are marked *