File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Enterprise Bean Environment

 
Shanmugam Karthikeyan
Ranch Hand
Posts: 58
  • 0
  • 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.
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • 0
  • 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
  • 0
  • 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.
 
Michael Valentino
Ranch Hand
Posts: 96
  • 0
  • 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?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic