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 is an entity and its types?

545


What are the components of ejb?

554


What is stateless session?

553


What is enterprise bean?

589


What is stateless session bean?

546






How does ejb container work?

509


What is the difference between find and select methods in ejb?

533


What is ejb context?

541


What is the difference between Session bean and Entity bean?one?

558


What is a ejb container?

515


What is stateless programming?

595


What is ejb and its uses?

507


What is the use of @ejb annotation?

528


What are the components of session beam?

639


What do you understand by session facade?

522