PrepAway - Latest Free Exam Questions & Answers

Which code demonstrates the proper technique for changing the value of an enterprise bean’s environment

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?

PrepAway - Latest Free Exam Questions & Answers

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