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 by abstract schema?

565


What is ejb javatpoint?

574


Explain the important elements of ejb?

556


can u explain about design patterns like singleton,builder,factory

1895


Is soap stateless or stateful?

540






What is the difference between ejb and spring?

537


Define Clone?

599


what is the Relationship between EJB and CORBA architecture?

3427


What does @inject mean in java?

648


Is it possible to have threading in ejb?

556


What is ejb in java?

540


What is ejb framework?

563


What is ejb ql?

571


What is EJB server provider?

584


What do you mean by timer service and where it is used?

517