This method is called when the instance is activated from its "passive" state.
The instance should acquire any resource that it has released earlier in the
ejbPassivate() method.
This method is called with no transaction context.
exception: EJBException - - Thrown if the instance could not perform thefunction requested by the container
ejbCreate
publicString ejbCreate(String fullName, Date birthdate, int luckyNumber) throws CreateException, DuplicateKeyException(Code)
A container invokes this instance before creating the EJBObject
This method is called before the instance enters the "passive" state.
The instance should release any resources that it can re-acquire later in the
ejbActivate() method.
After the passivate method completes, the instance must be in a state that
allows the container to use the Java Serialization protocol to externalize
and store away the instance's state.
This method is called with no transaction context.
exception: EJBException - - Thrown if the instance could not perform thefunction requested by the container
ejbPostCreate
public void ejbPostCreate(String fullName, Date birthdate, int luckyNumber) throws CreateException(Code)
There must be an ejbPostCreate par ejbCreate method
throws: CreateException - Failure to create an entity EJB object.
ejbRemove
public void ejbRemove() throws RemoveException(Code)
A container invokes this method before it removes the EJB object
that is currently associated with the instance.