aspose 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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HF: page 369, a Entity Bean question.