Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why local interfaces only for container managed relationships

 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was reading through "Head First EJB" and read that container managed relationships would be handled by local interfaces not remote. From the book "CMR relationship can be only a local component interface but not remote". Why did Sun restrict this? What is the motive behind that.

Typically database would be in its own layer and could be remote to the jvm on which beans are running. Then what difference does it make if we use a remote vs local interfaces to define the CMR. I understand that it is a spec, but what made them (sun) to think in this angle.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic