aspose file tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes elaborate the reason for Local interface with EJB 2.0 CMR Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "elaborate the reason for Local interface with EJB 2.0 CMR" Watch "elaborate the reason for Local interface with EJB 2.0 CMR" New topic
Author

elaborate the reason for Local interface with EJB 2.0 CMR

Edy Yu
Ranch Hand

Joined: Nov 21, 2000
Posts: 264
Can anybody explain in details why adding local interface support in EJB 2.0 is critical for CMR?
Thanks in advance ...


<i><br />Sun Certified Programmer for Java 2 Platform (SCJP)<br />Sun Certified Developer for Java 2 Platform (SCJD)<br />Sun Certified Web Component Developer for Java2 Platform, Enterprise Edition (SCWCD)<br />Sun Certified Business Component Developer for Java2 Platform, Enterprise Edition (SCBCD)<br />Sun Certified Enterprise Architect for J2EE (SCEA)<br />IBM Certified Enterprise Developer, WebSphere Studio V5.0<br /></i>
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
In the EJB spec 2.0, Section 1.2 states:

We have defined local interfaces and local home interfaces for session beans and entity beans to provide support for lightweight access from enterprise beans that are local clients. Local interfaces allow session beans and entity beans to be tightly coupled with their clients and to be directly accessed without the overhead typically associated with remote method calls. Local interfaces also provide the foundation for container-managed relationships among entity beans with container-managed persistence.

Moreover, according to section 9.3, in order to participate in a container-managed relationship, an entity bean MUST provide a local interface.


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Edy Yu
Ranch Hand

Joined: Nov 21, 2000
Posts: 264
Thanks for you reply.
Could you provide more detailed explantion? Maybe a couple of real examples.
Thanks in advance.
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Please check out the following thread which contains a sort of detailed explanation on CMR.
http://www.coderanch.com/t/159118/java-EJB-SCBCD/certification/Remote-Local
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: elaborate the reason for Local interface with EJB 2.0 CMR
 
Similar Threads
CMP scenario
usage of entity and session beans in combination?
Use of CMR fields from Client
Couple of questions....
Realistic Utility of Entity Beans