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 HF: page 369, a Entity Bean question. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "HF: page 369, a Entity Bean question." Watch "HF: page 369, a Entity Bean question." New topic
Author

HF: page 369, a Entity Bean question.

Prashant Neginahal
Ranch Hand

Joined: Sep 14, 2002
Posts: 77
Hi ALl,

Which method(s) from EntityContext interface can be invoked from within the ejbCreate method?

a) getEJBHome()
b) getEJBObject()
c) getCallerPrincipal()
d) getUserTransaction()
e) setRollbackOnly()

Correct answers givien are a, b, c, e.

But how come 'b' is correct? EJBObject is available only in ejbPostCreate(). So, is it a mistake?

Thanks,
Prashant


Thanks, <br />Prashant<br />SCJP, SCBCD
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
According to Table 4 of paragraph 10.5.5 of the EJB 2.0 specification, answer b is wrong. Note that this errata is already listed in the official errata list for the HF EJB book


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
 
subject: HF: page 369, a Entity Bean question.
 
Similar Threads
AWT Ques. from Javaprepare.com
Jqplus
question from JvalTest
HFEJB Chap 6 Mock Exam Q9 p369
Doubt in HFEJB Question