Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide 10g (10.1.3.1.0) Part Number B28221-02 |
|
|
View PDF |
The following are the EJB 2.1 life cycle methods, as specified in the javax.ejb.EntityBean
interface, that an entity bean with container-managed persistence must implement (see "Using Java"):
ejbCreate
ejbPostCreate
ejbRemove
ejbStore
ejbLoad
ejbActivate
ejbPassivate
Note:
Using EJB 2.1, you must implement all entity bean callback methods. If you do not need to take any action, implement an empty method.For more information, see "What is the Life Cycle of an EJB 2.1 Entity Bean With Container-Managed Persistence?".
Example 14-12 shows how to implement an EBJ 2.1 entity bean life cycle callback method.