This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Doubt in Enterprise Bean Environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Doubt in Enterprise Bean Environment " Watch "Doubt in Enterprise Bean Environment " New topic
Author

Doubt in Enterprise Bean Environment

Shanmugam Karthikeyan
Ranch Hand

Joined: Aug 02, 2002
Posts: 58
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.


SCJP 1.4<br />SCWCD 1.4<br />SCBCD 1.3
Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
a,c,e are the correct answers in my opinion.


Rizwan
SCJA, SCJP, SCWCD, SCBCD, SCDJWS.
Shanmugam Karthikeyan
Ranch Hand

Joined: Aug 02, 2002
Posts: 58
Hi ,

Thanks for your reply , Can you explain me why option d is not correct.
Michael Valentino
Ranch Hand

Joined: Nov 01, 2005
Posts: 96
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?


SCJP 1.4, SCWCD J2EE 1.4, SCJD J2SE 1.5, SCBCD J2EE 1.3, SCDJWS (In Progress)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Doubt in Enterprise Bean Environment
 
Similar Threads
Question ? - What do you think and Why
Question on Environment Entries
Environment
Enterprise Bean Environment question from ejbcertificate.com
a mock question