Header Ads

  • Breaking Now

    What is the difference between Container managed persistent and Bean managed persistent entity bean ?

    The major difference between CMP and BMP Entity Beans is managing persistence of data through container in case of CMP and programmatically in BMP.
    Generally, you should use CMP unless you're forced to use BMP due to limitations of the mapping tools. In case of mapping some relatively complex data models.
    CMP is better than BMP as far as performance is concerned as in case of CMP through OR mapping optimization of transaction process is taken care off by container in the best possible manner. While in case of BMPs you can optimize your queries and improve performance over the generalized container-managed heuristics.

    Post Top Ad

    Post Bottom Ad