Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Page 398 in HF EJB

 
Christer Hedstr�m
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On page 398 we have a remote home interface belonging to a discussion on CMR.
On page 386 it says:
"The only restriction is that a relationship field can be only a local component interface type! You can't have a CMR relationship field that uses a bean's Remote interface!"
The bean, MovieBean, on page 398 is clearly in relationship with another bean, DirectorBean, if you look at the DD on pages 394-395.
Am I losing it?!
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The <entity> element has a <local> element which contains the Director component interface. Therefore, Director can be a CMR field.
 
Christer Hedstr�m
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, yes in the DD it all seems ok but on the page 398 it's not the local home interface that's shown.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!