This week's giveaway is in the Spring forum.
We're giving away four copies of Microservices Testing (Live Project) and have Chris Love & Andres Sacco on-line!
See this thread for details.
Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Role OF CMR

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,
I cleared the cert a month back, but was never satisfied with the way CMR has been handled in most BOOKS.
There has always been a confusion in the role of Container Managed Relationships and why exaclty they have been introduced?
Also why are only Local Component Interfaces required as return types for CMR?
If some one could give a detailed explanation of the above mentioned it would be of extreme help to me in understanding this particular part of EJB's!!!
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Before EJB 2.0, entity EJB developers had to manually manage relationships between entity beans. The EJB 2.0 specs enable the entity bean container to manage entity relationships based on a referential integrity model. When an entity is added to or removed from a relationship, all other related entities and relationships are updated to maintain referential integrity.
The entity beans which participate in a relationship can have remote interfaces, but the view that an entity bean presents to other beans in a relationship should only be the local interface. This will allow beans participating in a relationship to have optimized access to each other's methods by bypassing RMI invocation overheads.
Also check out
https://coderanch.com/t/159105/java-EJB-SCBCD/certification/elaborate-reason-Local-interface-EJB
Thanks
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please check out the following thread which contains a sort of detailed explanation on CMR.
https://coderanch.com/t/159118/java-EJB-SCBCD/certification/Remote-Local
reply
    Bookmark Topic Watch Topic
  • New Topic