• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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.
 
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
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic