Oracle® Application Server Containers for J2EE Enterprise JavaBeans Developer's Guide
10g Release 2 (10.1.2) Part No. B15505-01 |
|
![]() Previous |
![]() Next |
If you want to implement the manual storing and reloading of data, then use a bean-managed persistent (BMP) bean. The container manages the data within callback methods, which you must implement. All the logic for storing data to your persistent storage is included in the ejbStore
method, and reloaded from your storage in the ejbLoad
method. The container invokes these methods when necessary.
This chapter demonstrates simple BMP EJB development with a basic configuration and deployment. Download the BMP entity bean example from the OC4J sample code page at on the OTN Web site.
The following sections discuss how to implement data persistence: