• Post Reply Bookmark Topic Watch Topic
  • New Topic

ejbPostCreate  RSS feed

 
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?
 
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().
 
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().
 
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!