• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Chapter 6 - Mock Exam 9

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi people,

There is a question about ejbCreate() method in page 364 (Mock Exam - Q. 9). The answer in page 369 (Mock Exam - Answer 9) says that the letter B is correct (getEJBObject()). But in page 329 (Creating a new Entity) the new EJB Object is created after ejbCreate() method. So how can I access the EJB Object (getEJBObject method) if it hasn't been created?

The complete question:

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



Thanks
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please read the Errta from the book's site:
http://www.oreilly.com/catalog/hfjejb/errata/hfjejb.confirmed


[369] Question 9;
The answer to question 9 should not have B checked. The EBJObject is not available during an entity bean's ebjCreate()



Nick
 
reply
    Bookmark Topic Watch Topic
  • New Topic