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 are the benefits of ejb?

640


What do you mean by ejb?

633


What is software architecture of ejb?

625


How does ejb container work?

594


What is ejb and its architecture?

588






What is ejb home object?

648


For ejb applications with bean-managed transaction demarcations, which of the following is used by the client to get a reference to the usertransaction object for the weblogic server domain?

629


Is udp stateless?

661


Is having static initializer blocks legal in ejb?

634


Is it legal to have static initializer blocks in ejb?

637


What is rmi and ejb in java?

635


How ejb invocation happens?

651


Which is the only method defined in the javax.ejb.handle interface?

716


What are stateless functions?

597


what is mean by OLE ? Please answer me. Advance thanks.

2235