File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes mock exam doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "mock exam doubt" Watch "mock exam doubt" New topic
Author

mock exam doubt

arunij katiliyar
Greenhorn

Joined: Mar 09, 2005
Posts: 26
Hi ,
I came across the following question in one of the mock exams.

<ejb-link> is provided by whom ?
a.Bean provider
b.Application Assembler
c.Deployer .

I think the valid options are a and b but the the correct answer is a,b,c . Why should deployer specify ejb-link .

Thanks
Arun
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Strictly speaking, only answer b should be correct. In the EJB 2.0 specification, the Bean Provider is just someone who provides EJBs, and thus, does not need to link beans together. However, the Application Assembler is a person who binds beans together in order to build up a concrete application. Agreed, sometimes the Bean Provider and the Application Assembler are one and the same person, and thus, the roles are somehow mixed. The only mention about the Deployer having something to do with the ejb-link element is made in section 20.3.3 of the spec where it is stated that the Deployer should bind the EJB reference to the home of the EJB specified as the link's target.

To sum up, the Bean Provider only provide isolated beans and does not wire beans together. Thus, no need to mess with ejb-link.
The Application Assembler is the one who ties all beans together, and thus, he needs to provide the ejb-link element.
The Deployer's role is limited to binding references to the respective EJB homes for each ejb-link element.


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Lahiru Abeydeera
Ranch Hand

Joined: Nov 05, 2004
Posts: 44
Hi
I think i have another question related to this..?

If Bean Developers responsibility is to provide EJB's whos responsible to write <relation> tags for entity beans
is it deployer, App Assempler or bean proider
David McDonagh
Greenhorn

Joined: Feb 13, 2004
Posts: 19
Hi,

In the spec it mentions that the bean provider must define the relationships of the beans �The entity Bean Provider must specify in the deployment descriptor those persistent fields and relationships for which the Container must handle data access.� P127

Hope this helps.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mock exam doubt
 
Similar Threads
K&B mock test
Doubt in Final Mock Exam of HFEJB
mock exam links
Passed SCBCD with 78%
EJB 3 Local Lookup not working with Weblogic 10.3 and JDK 1.6_05