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
What do you mean enterprise javabeans (ejb) container?
What are the design principles for ejb?
Does spring use ejb?
What is a ejb container?
What is stateful session bean?
What is stateless session?
What are the differences between ejb 3.0 and ejb 2.0?
What do you understand by annotation in ejb to do the database entity relationships/mappings with examples?
TX operation funtion executed by?
Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean?
What is ejb home object?
Differentiate “find a method” from “select method” in EJB ?
What is stateless and stateful session bean in ejb?
Where is ejb used?
What is the advantage of using entity bean for database operations, over directly using jdbc api to do database operations?