File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Why local interfaces only for container managed relationships Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Why local interfaces only for container managed relationships" Watch "Why local interfaces only for container managed relationships" New topic
Author

Why local interfaces only for container managed relationships

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

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.


Regards
KumarRaja

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why local interfaces only for container managed relationships
 
Similar Threads
CMP relationship question
Q: CMRs in Remote Interface Of Entity Beans
Role OF CMR
Entity beans wrapped by Session beans
CMR in CMP Entity Beans