Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Restrictions for the CMR fields

 
Poobhathy Kannan
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • 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?
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • 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.
 
Chetan Sahasrabudhe
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • 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
 
Poobhathy Kannan
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys

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