• 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

cmt,cmp&cmr

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
could some one ellaborate what does cmp, cmr & cmt mean.
Are thet 1 & the same or is there a fine line of difference
Rgrds
Neo
 
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.
 
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic