Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a mock question

 
chao cai
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following statements regarding an enterprise bean's environment are correct? [Check all correct answers]


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.

the answer is 1,5 why 3 is wrong?
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
The environment entries can be set by bean provider,app assembler or the deployer. I believe that 3 is right.
 
Thomas Vezhambacheril
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1,3,5 is correct.But 4 is wrong because bean instance getting value from container not from the deploymnt descriptor. isn't it?
Thomas
 
Dhondiba Joshi
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I find this question confusing.

How is 1 correct ? Does Container provide any 'tool' to manage environment??
its the app server vendor who provides any tool.

Please correct me if i am wrong ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic