What is the difference between CMP and BMP EJB's (beans) ?

Discussion in 'Java' started by Tobias Merler, Sep 8, 2004.

  1. What is the difference between CMP (container manged persitence) beans and
    BMP beans?

    Tobias
     
    Tobias Merler, Sep 8, 2004
    #1
    1. Advertisements

  2. Tobias Merler

    Sudsy Guest

    Tobias Merler wrote:
    > What is the difference between CMP (container manged persitence) beans and
    > BMP beans?


    In a nutshell, CMP beans can leave the ejbActivate, ejbPassivate,
    ejbLoad, ejbStore and ejbRemove methods empty; the container is
    responsible for that functionality. You're on your own when you
    write BMPs.
    Justification for BMP: a DBMS which your container doesn't support
    or an access schema so complex that EQL can't handle it.
    FWIW I prefer CMP, especially now that CMRs are supported along
    with the "ORDER BY" clause in EQL.
    YMMV
     
    Sudsy, Sep 8, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jakk
    Replies:
    4
    Views:
    13,959
  2. Mick Willis
    Replies:
    1
    Views:
    648
    Sudsy
    Sep 3, 2003
  3. Tim

    Entity beans and CMP

    Tim, Jan 30, 2004, in forum: Java
    Replies:
    0
    Views:
    448
  4. John
    Replies:
    3
    Views:
    455
  5. lionel pacoud

    relation from a CMP to a BMP

    lionel pacoud, Jun 9, 2004, in forum: Java
    Replies:
    1
    Views:
    453
    DrBrain
    Jun 10, 2004
  6. Andrea Sansottera

    no cmp field defined in cmp ejb

    Andrea Sansottera, Jul 16, 2004, in forum: Java
    Replies:
    0
    Views:
    543
    Andrea Sansottera
    Jul 16, 2004
  7. Lars Willich
    Replies:
    0
    Views:
    470
    Lars Willich
    Oct 16, 2004
  8. Raymond Schanks
    Replies:
    0
    Views:
    907
    Raymond Schanks
    Aug 3, 2010
Loading...