Win a copy of AWS Security this week in the Cloud/Virtualization 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

ejbPostCreate

 
Ranch Hand
Posts: 413
  • 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
 
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
 
What's a year in metric? Do you know this metric stuff tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic