This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud and have Kyle Brown, Bobby Woolf and Joseph Yodor on-line!
See this thread for details.
  • 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
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Restrictions for the CMR fields

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HFE says ..
"The restrictions for the CMR fields are that they can refer only to the local component interface of the entity bean,and....."

Pleas explain why it can not refer to a remote component interface?
 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the nature of CMR among entity beans, i.e., it is designed so. I guess the advantage of having local relationsip scope is that we can have better performances rather than remote relationships.

For more information, please refer to the EJB 2.0 Specifications, page 131, section 10.3.2.

HTH.
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess with local references itz easy to maintain the relation object map.
Something what hibernate does.

With remote references one major thing is how will you verify if the object is still there ?
that is avoided by local references as the object map is maintain in single heap.

I guess my guess is pretty much on the mark.

Please confirm
 
Poo Kan
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys

got cleared..I read the spec 10.3.2 as well
reply
    Bookmark Topic Watch Topic
  • New Topic