EJB CMP and BMP: What is the difference between CMP and BMP?

What are the different types of driver?

CMP (Container-Managed Persistence) :

- All the logic for synchronizing the bean's state with the database is handled automatically by the container.

- The bean developer doesn't need to write any data access logic.

- The EJB server is supposed to take care of all the persistence needs automatically.

- Vendor tools are used to map the entity fields to the database and absolutely no database access code is written in the bean class.

BMP (Bean-Managed Persistence) :

- Enterprise bean manages synchronizing its state with the database as directed by the container.

- BMP gives the bean developer the flexibility to perform persistence operations that are too complicated for the container or to use a data source that is not supported by the container.

- The bean uses a database API to read and write its fields to the database, but the container tells it when to do each synchronization operation and manages the transactions for the bean automatically.
EJB-isolation-levels.aspx
EJB transaction isolation levels - Transaction_read_uncommitted- Allows a method to read uncommitted data from a DB(fast but not wise)....
Bean managed transaction: What is bean managed transaction?
Bean managed transaction - This is usually when a developer does not want the Container to manage the transactions. ..
EJB abstract schema: What is abstract schema?
EJB abstract schema - Abstract schema is specified for entity beans with container managed persistence. The name of Abstract schema....
Post your comment