Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in Enterprise Bean Environment  RSS feed

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anyone let me know the answer for this question.


1. Which of the following statements regarding an enterprise bean's environment are correct? Enterprise Bean Environment

a. The container provides the tools that allow the deployer to create and manage the enterprise bean's environment.

b. Enterprise bean instances can modify the values of the environment entries at runtime.

c. The deployer sets and modifies the values of the environment entries by editing the enterprise bean's deployment descriptor.

d. Enterprise bean instances obtain the values of the environment entries from the enterprise bean's deployment descriptor.

e. Enterprise bean instances use the JNDI interfaces to obtain the values of the environment entries.
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a,c,e are the correct answers in my opinion.
 
Shanmugam Karthikeyan
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Thanks for your reply , Can you explain me why option d is not correct.
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Option d) is incorrect because the values are not obtained from the deployment descriptor. The values are set in the deployment descriptor but they are made available to the beans at runtime through the JNDI environment. The way it's worded, option d) sounds like "You get the values by reading them from the deployment descriptor" which is not correct.

That make sense?
 
No, tomorrow we rule the world! With this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!