File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Hi, All i have a doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Hi, All i have a doubt" Watch "Hi, All i have a doubt" New topic
Author

Hi, All i have a doubt

kumarbobby
Greenhorn

Joined: Jul 07, 2005
Posts: 11
Hi, all
i have a doubt what is the postcreate mehtod in ejb(in entity beans)
please kindly help me
Nadeem Awad
Ranch Hand

Joined: Jan 09, 2005
Posts: 74
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,


Share Knowledge to gain it.<br /> <br />SCJP 1.2, SCDJWS 1.4, SCWCD 1.4, SCBCD 1.3, ICAD
Chandan Ghosh
Greenhorn

Joined: Jun 13, 2005
Posts: 21
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.


Thanks & Regards,<br />Chandan Ghosh<br />SCJP1.4
 
GeeCON Prague 2014
 
subject: Hi, All i have a doubt