Hi, what is the exact use of ejbPostCreate(). Mohan.
Thank you,<br />Sanju
Joined: Dec 15, 2004
Using ejbPostCreate (when you develop EJB CMP) you can set CMR fields. Wchich is as far as I know impossible when you use ejbCreate method. The ejbPostCreate is invoked after ejbCreate method.
Joined: Dec 16, 2004
Whatever you wish to execute before an EJBObject make your bean accessable for the client can be put in ejbPostCreate(). An oftenly seen task (as stated above) in ejbPostCreate() is setting up references to other existing beans, as relationships can not be established before... But you could also perform other kinds of initialization. [ December 16, 2004: Message edited by: Thomas Manthey ]
inside every large program there is a small program struggling to get out...