EJB%20Interview%20Questions%20and%20Answers
Question: When should I adopt BMP and when I should use CMP?Answer: You can use CMP and BMP beans in the same applicatioN... obviously, a bean can be BMP or CMP, not both at the same time (they are mutually exclusive).There is a common approach that is normally used and considered a good one. You should start developing CMP beans, unless you require some kind of special bean, like multi-tables, that cannot be completely realized with a single bean. Then, when you realize that you need something more or that you would prefer handling the persistence (performanbce issue are the most common reason), you can change the bean from a CMP to a BMP. |
Is it helpful?
Yes
No
Most helpful rated by users:
- What are the different kinds of enterprise beans?
- What is Entity Bean?
- What is Session Bean?
- What is the difference between Container-Managed Persistent (CMP) bean and Bean-Managed Persistent(BMP)?
- What are the methods of Entity Bean?