This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
1 The container provides the tools that allow the deployer to create and manage the enterprise bean's environment. 2 Enterprise bean instances can modify the values of the environment entries at runtime. 3 The deployer sets and modifies the values of the environment entries by editing the enterprise bean's deployment descriptor. 4 Enterprise bean instances obtain the values of the environment entries from the enterprise bean's deployment descriptor. 5 Enterprise bean instances use the JNDI interfaces to obtain the values of the environment entries.
3 The deployer sets and modifies the values of the environment entries by editing the enterprise bean's deployment descriptor.
This should be correct .If the bean provider or the app assembler has not specified the value of the env entry then the deployer can specify it. I am not very sure that what specs says about the deployer is allowed to modify the env entries but logically the deployer should be allowed to modify it.
hope that helps.
Sawan<br />SCJP,SCWCD,SCBCD<br /> <br />Every exit is an entry somewhere.
Thing over the App Assembler, he has to set the values for env - entry,since he knows the business logic. So I think this may be reason the option3 is not correct.
Deployer responsiblity may be ensure the all env-entry has been setted, if not mean, he can ask the app assembler to set the corresponding values, but he can't do it(Since he don't know what values this should be).
If the Bean Provider provides a value for an environment entry using the env-entry-value element, the value can be changed later by the Application Assembler or Deployer. The value must be a string that is valid for the constructor of the specified type that takes a single String parameter, or for java.lang.Character, a single character.
Yes, i agree with you on deployer can change the values, but he can't set the value.
Option 3 is : 3 The deployer sets and modifies the values of the environment entries by editing the enterprise bean's deployment descriptor..
Thats iam saying, option 3 is not correct.
Thanks & Regards Kasimurugan R.
Joined: Aug 24, 2004
Hi KasiMurugan ,
EJB Specs page 415
The Deployer can modify the values of the environment entries that have been previously set by the Bean Provider and/or Application Assembler, and must set the values of those environment entries for which no value has been specified.