wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hi, All i have a doubt
 
Similar Threads
Doubt
doubt!!
Doubt
doubt
doubt