Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide 10g (10.1.3.5.0) Part Number E13981-01 |
|
|
View PDF |
The following are the EJB 2.1 life cycle methods, as specified in the javax.ejb.MessageDrivenBean
interface, that a message-driven bean must implement (see "Using Java"):
ejbCreate
ejbRemove
Note:
Using EJB 2.1, you must implement all message-driven 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 a Message-Driven Bean?".
Example 18-7 shows how to implement an EBJ 2.1 message-driven bean life cycle callback method.