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.SessionBean
interface, that a session bean must implement (see "Using Java"):
ejbCreate
ejbActivate
(stateful session beans only)
ejbPassivate
(stateful session beans only)
ejbRemove
setSessionContext
Note:
Using EJB 2.1, you must implement all session bean callback methods. If you do not need to take any action, or if the callback method does not apply to your session bean, implement an empty method.For more information, see the following:
Example 12-1 shows how to implement an EBJ 2.1 session bean callback method.