• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt in Enterprise Bean Environment

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic