• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF: page 369, a Entity Bean question.

 
Prashant Neginahal
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic