It's not a secret anymore!*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes ejb-jar file 's content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "ejb-jar file Watch "ejb-jar file New topic
Author

ejb-jar file 's content

Micheal H Nguyen
Greenhorn

Joined: Jan 12, 2006
Posts: 13
From the spec:
The ejb-jar file must contain, either by inclusion or by reference, the class files of each enterprise bean as follows:

The enterprise bean class.
The enterprise bean home and component interfaces.
The primary key class if the bean is an entity bean.
The ejb-jar file must also contain, either by inclusion or by reference, the class files for all the classes and interfaces that each enterprise bean class and the home and component interfaces depend on, except J2EE and J2SE classes.
The Application Assembler must not package the stubs of the EJBHome and EJBObject interfaces in the ejb-jar file.


but, in the case of Message Driven Bean, there is no home, no component, so how can we include those files into ejb-jar file?
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

we don't.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
warren li
Ranch Hand

Joined: May 23, 2006
Posts: 128
That line doesn't apply to MDB.


SCBCD 1.3: 94%<br />SCWCD 1.4: 91%<br />SCJP 5: 95%
Micheal H Nguyen
Greenhorn

Joined: Jan 12, 2006
Posts: 13
so they should specify that in the spec then. Like:

content:
The enterprise bean home and component interfaces, for session and entity only.

but they didn't say that
If we see that kind of question in the exam, what should we do?
warren li
Ranch Hand

Joined: May 23, 2006
Posts: 128
use the no of correct questions to judge.

I know in the spec, it is not stated for MDB. and in the final mock in the HFEJB, the question is there. but because that mock doesn't have exact no. of correct answers, I did it wrong.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ejb-jar file 's content