There are two things you should do in ejbPostCreate:
- establish relationships with other entity beans, you do this by initializing cmr-fields - if necessary, pass a reference to your ejb object to other ejb's, you get a reference to your ejb object using ejbCtx.getEJBObject(). You should not use a this reference since clients should never talk directly to the bean object
Both these things cannot be done in ejbCreate() since the primary key is not yet available. So you have to do them in ejbPostCreate() instead.
RAMA KRISHNA AALLA
posted 15 years ago
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad: