This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes a mock question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "a mock question " Watch "a mock question " New topic

a mock question

chao cai
Ranch Hand

Joined: May 26, 2005
Posts: 154
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?

SCEA<br />SCJP 1.2<br />SCBCD<br />MCSD<br />IBM Certified Specialist RUP v2003<br />IBM Certified Solution Designer OOAD vUML2<br /> <br />Phone Number:86-010-82776427
sawan parihar
Ranch Hand

Joined: Aug 24, 2004
Posts: 250
The environment entries can be set by bean provider,app assembler or the deployer. I believe that 3 is right.

Sawan<br />SCJP,SCWCD,SCBCD<br /> <br />Every exit is an entry somewhere.
Thomas Vezhambacheril

Joined: Aug 02, 2005
Posts: 17
1,3,5 is correct.But 4 is wrong because bean instance getting value from container not from the deploymnt descriptor. isn't it?
Dhondiba Joshi
Ranch Hand

Joined: Jan 23, 2004
Posts: 39
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 ?

I agree. Here's the link:
subject: a mock question
It's not a secret anymore!