Hi, what is the exact use of ejbPostCreate(). Mohan.
Thank you,<br />Sanju
Mariusz Malinowski
Greenhorn
Joined: Dec 15, 2004
Posts: 14
posted
0
Hi!
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.
Regards,
Mariusz
Thomas Manthey
Greenhorn
Joined: Dec 16, 2004
Posts: 12
posted
0
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...