Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejbPostCreate

 
vara prasad
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the purpose of ejbPostCreate?
Difference between ejbCreate Vs ejbPostCreate?
 
Balaji Anand
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In ejbPostCreate() only the bean can pass a reference to itself ie its EJBObject and not in ejbCreate(). check what happens when u try creating an entity...u will understand the need for ejbPostCreate().
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A very common use for ejbPostCreate() is setting relationships for CMR entity beans. You must do it in ejbPostCreate() snice it doesn't have a primary key yet in ejbCreate().
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic