• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hi, All i have a doubt

 
kumarbobby
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all
i have a doubt what is the postcreate mehtod in ejb(in entity beans)
please kindly help me
 
Nadeem Awad
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear kumarbobby,
The EJB 2.1 Specs, Section 10.5.2, Page 189 says:
The entity Bean Provider may use the ejbPostCreate<METHOD> to set the values of cmr-fields to complete the initialization of the entity bean instance.


Regards,
 
Chandan Ghosh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
At the time of ejbCreate() , from the bean instance we can not get the reference of EJBObject, we can not get the Primary key, we can not get the Client security information as that time EJBObject is not created.
But in ejbPostCreate<method>() EJBObject is created by container and we can get all of the above.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic