Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

HF: page 369, a Entity Bean question.

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?

Author & Gold Digger
Posts: 7617
IntelliJ IDE Java
  • 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
    Bookmark Topic Watch Topic
  • New Topic