What is difference between BeanMangedPersistance and ContainerMangedPersistance?
CMP: Tx behaviour in beans are defined in transaction attributes of the methods
BMP: Programmers has to write a code that implements Tx behaviour to the bean class.
Tuned CMP entity beans offer better performance than BMP entity beans. Moving towards the CMP based approach provides database independence since it does not contain any database storage APIs within it. Since the container performs database operations on behalf of the CMP entity bean, they are harder to debug. BMP beans offers more control and flexibility that CMP beans.
Diff 1) In BMP you will take care of all the connection and you write the SQL code inside the bean whereas in CMP the container will take care of it
Diff 2) The BMP is not portable across all DB’s whereas the CMP is.
-
Interview Candidate
- Dec 18th, 2003
- 2
- 1628
Showing Answers 1 - 2 of 2 Answers
Related Answered Questions
Related Open Questions
What is difference between BeanMangedPersistance and ContainerMangedPersistance?
BMP: Programmers has to write a code that implements Tx behaviour to the bean class.
Tuned CMP entity beans offer better performance than BMP entity beans. Moving towards the CMP based approach provides database independence since it does not contain any database storage APIs within it. Since the container performs database operations on behalf of the CMP entity bean, they are harder to debug. BMP beans offers more control and flexibility that CMP beans.
Diff 1) In BMP you will take care of all the connection and you write the SQL code inside the bean whereas in CMP the container will take care of it
Diff 2) The BMP is not portable across all DB’s whereas the CMP is.
Related Answered Questions
Related Open Questions