This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejbPostCreate

 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB Specs say that ejbPostCreate is called to fully initialise the bean
but Whizlabs SCBCD Exam had an question asking for life cycle of entity bean
I wrote
this sequence
ejbCreate()->ejbPostCreate()-->business method

and it was wrong
as answer was
ejbCreate()-->business method-->ejbPostCreate()

Does any one has the idea what could be reason for it
 
Stefan Guilhen
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one idea: Whizlabs gave you a wrong answer. According to both the spec and HFEJB the correct sequence should be ejbCreate -> ejbPostCreate -> business methods.

Stefan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic