using local interfaces for EJB (session bean)
Hi,
I抳e a question regarding when to use the Local interfaces(EJBLocal and EJBLocalHome) of a enterprise bean. I understand that calls to enterprise bean can be made locally if the client which is invoking is in the same JVM as that of EJB. I抳e written a web client (servlet) which is packaged in a EAR and this servlet is trying to invoke a session bean which is in a ?i>different?EAR using local interfaces. Both the EARs have been deployed in a single server (websphere 6.0 server). It didn抰 work for me this way?.If I package the servlet in the same EAR of session bean then it works fine.
So is this to say that both EARs are not running on the same JVM? Or should it work even if the client and the session bean are in different EARs but in same server?
Can anyone explain me the fundamentals behind this.
Thanks in advance

