Skip Headers
Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide
10g (10.1.3.5.0)

Part Number E13981-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

Configuring a Life Cycle Callback Method for an EJB 2.1 Entity Bean With Bean-Managed Persistence

The following are the EJB 2.1 life cycle methods, as specified in the javax.ejb.EntityBean interface, that an entity bean with bean-managed persistence must implement (see "Using Java"):

For an entity bean with bean-managed persistence, you are responsible for providing a complete implementation of all life cycle methods.

For more information, see "What is the Life Cycle of an EJB 2.1 Entity Bean With Bean-Managed Persistence?".

Using Java

Example 15-6 shows how to implement an EBJ 2.1 entity bean life cycle callback method.

Example 15-6 EJB 2.1 Entity Bean Life Cycle Callback Method Implementation

public void ejbActivate() {
    // when bean is activated
}