With the new 2.0 CMP specifications, whenever possible local interfaces are
suggested. In your (and many other) cases, a session bean facade (that is
hiding from client the entity bean, but managing it through a session bean)
it is the right things to do. The main advantage from local interfaces
instead of remote ones, is that objects are passed by reference and not by
copying them).

Additionally, with remote interface every method call is a remote method
call, which is not true with local interfaces. Also, with remote interfaces,
the container must create copies of all parameters that do not extend
java.rmi.Remote, which is not true with local interfaces.

Hope it will help,

Marco
----- Original Message ----- 
From: "Muraly R" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 2:35 PM
Subject: [JBoss-user] EJB Local and Remote Interfaces.


> Hi Gurus,
> The application currently I am working is having only Remote Interfaces.
> But there are scenarios, like the client never invoked the entity bean
> directly. Only the session bean invokes the entity bean. The client
invokes
> the stateless session beans.
>
> In such a scenario, does the implementation of Local interface give a
> performance boost(in the sense, less memory usage, quick response, etc...)
> to the application?. (Actaully the application is having 5 VM interaction
> including JBoss. Hence the question ;-)
>
> Thanks
> Muraly
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>





-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to