| 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
|
 |
 |
|
|
subject: elaborate the reason for Local interface with EJB 2.0 CMR
|
|
|