Difference between container-managed & bean-managed
persistence?

Answer Posted / john doe

In a CMP the task of mainitain the persitance is carried out
completely by the container. It is simpler for the developer
as the most of the tasks are handled by the contianer
itself. The developer does not have to worry about
connectivity or the JDBC

In a BMP the developer has to use database APIs to read or
write data into the DB. This gives him the flexibilty to
carry out the persistance operations which are too
complicated for the container to handle. He has to use EJB
QL (EJB Query Lanaguage) to interact with the database using BMP

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean enterprise javabeans (ejb) container?

612


What are the design principles for ejb?

526


Does spring use ejb?

516


What is a ejb container?

523


What is stateful session bean?

572






What is stateless session?

561


What are the differences between ejb 3.0 and ejb 2.0?

535


What do you understand by annotation in ejb to do the database entity relationships/mappings with examples?

566


TX operation funtion executed by?

2218


Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean?

603


What is ejb home object?

572


Differentiate “find a method” from “select method” in EJB ?

533


What is stateless and stateful session bean in ejb?

496


Where is ejb used?

530


What is the advantage of using entity bean for database operations, over directly using jdbc api to do database operations?

557