Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need ejbpostcreate method for each create method in the bean

 
Vasantha Prabha
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it must to have an ejbpostcreate method for each create method ?
Regards,
Sangeetha
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it is a must for Entity beans.
 
Sergiu Truta
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to have a ejbPostCreate() method with the same signature as the ejbCreate() method. They are useful when you need to implement cmr(container manager relationship) because the relations are set inside the ejbPostCreate().
Sergiu.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic