Discussions

EJB design: BMP or CMP

  1. BMP or CMP (3 messages)

    Hi All :

     I am looking at the BMP or CMP issue, I get to propose which way our team should go ?

     Do you have any idea on that ?
     
     LL

    Threaded Messages (3)

  2. BMP or CMP[ Go to top ]

    Hi Lawrence,

    There is same discussion thred here under Performance section.

    Okay, First we will see what is BMP and What is CMP.

    In CMP, the contaier is responsible for the Persitence related Handling. The programmer need not to worry about the persistence related code. He can simply focus on the Business logic.

    In BMP, the programmer has to write all the persisitence related code. Definitely if programmer is well worse with database programming and he can write efficient code, BMP can be efficiet.

    Other than this BMP is not giving any advantage. Yes, if you have requirement to map more than one Table to one entity bean you have to go for BMP.

    But see, if the requirement is not like that, Than definitely we should go CMP only. After all it is well tested code. If you have specific queried please let me know.

    Cheers,
    Devendra
  3. BMP or CMP[ Go to top ]

    What does BMP and CMP stand for?

    Thanks
  4. BMP or CMP[ Go to top ]

    BMP = Bean Managed Persistance

    CMP = Container Managed Persistance

    These are theoritical defenitions , the related details u can find in any book .

    Gary

    gary@escosoft-tech.com