• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris


Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
could some one ellaborate what does cmp, cmr & cmt mean.
Are thet 1 & the same or is there a fine line of difference
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
CMT == Container Managed Transaction.
When CMT is used, the EJB Container controls the transactioning for the specified EJB or method. The scope of the transactions in CMT are set declaratively in the EJB's deployment descriptor.
CMP == Container Managed Persistance.
Entity Beans come in two flavors: BMP and CMP. With BMP, the developer is required to write all database access logic for persisting entities. With CMP, the EJB Container handled the persistance of entities automagically.
CMR == Container Managed Relationships.
One of the things that happens frequently when using Entity Beans is the need to form relationships between the various types of Entity Beans. When using BMP, all relationships must be explicitly managed by the developer. When using CMP, relationship management can be regulated to the EJB Container.
There is no relationship between CMT and the other two. However, there is a strong relationship between CMP and CMR. In fact, in order to use CMR you must be using CMP.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic