Local
Interfaces are meant for local references, to avoid remote lookup and related
overheads if your beans residing in the same container refer each
other.
This
interfaces can not be used for a client look up which is purely a remote call.
So implement a remote interface too with the same methods as the local
interface
if a
remote access is needed. A session facade is adviced between the entity beans
and the client, where the facade session bean takes advantage of local
interface.
thanks
ramesh
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]On Behalf Of Duc Nguyen
Sent: Monday, January 28, 2002 12:36 PM
To: [EMAIL PROTECTED]
Subject: CMP 2.0 Local InterfaceHi all,I am a little confuse here. I developed an entity bean that has Local Interface, and I create a client application that call this entity bean, I got an error message Object objRef = initial.lookup("CMP2"); method. My question is do I have to have a wrapper Entity or Session bean that have remote interfaces in order to access my entity that has Local Interface? Please verify this for me.Thanks,Duc
Get your FREE download of MSN Explorer at http://explorer.msn.com.
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
