• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Chapter 6 - Mock Exam 9

 
Fernanda Silveira
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic