| Author |
mock exam question; deployer responsabilities
|
Miki Muzsi
Ranch Hand
Joined: Jun 23, 2003
Posts: 120
|
|
I came across the following mock exam question. 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. Could anybody explain why 3 is not correct? Thanks, Miki
|
Miki<br /> <br />SCJP 1.4, SCBCD 1.3
|
 |
sawan parihar
Ranch Hand
Joined: Aug 24, 2004
Posts: 250
|
|
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.
|
 |
KasiMurugan Ramasamy
Ranch Hand
Joined: Jan 30, 2005
Posts: 125
|
|
Hi guys 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). Regards Kasimurugan R.
|
Thanks & Regards
Kasimurugan (SCJP1.4, SCBCD1.3), Preparing SCWCD1.4
|
 |
sawan parihar
Ranch Hand
Joined: Aug 24, 2004
Posts: 250
|
|
EJB Specs page 413 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. sawan SCJP,SCWCD,SCBCD
|
 |
KasiMurugan Ramasamy
Ranch Hand
Joined: Jan 30, 2005
Posts: 125
|
|
Hi sawan 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.
|
 |
sawan parihar
Ranch Hand
Joined: Aug 24, 2004
Posts: 250
|
|
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. Thanks. Sawan
|
 |
 |
|
|
subject: mock exam question; deployer responsabilities
|
|
|