I guess this should help you kris,
You can surely use remote interface through local client. That is what everyone was doing in previous versions of
EJB.
The problem was, even if my client (Mostly
servlets) are sitting on same machine and same appserver/webserver combination, One was required to make remote calls through RMI.
What EJB 2.0 provided was Local interfaces for EJBHome and EJBObject and provided normal
java object references so as to bypass "not so required" RMI calls.
On the other hand, if you are a remote client, then you surely cant call Beans marked local. The simple reason is, you will never get the stub from that bean. To be more presise you will not get the Home itself to create the bean.
so the concept goes like
Client Location----------------
Remote aware Bean-------------
Local Bean Local (Same JRE)---------------Can be accessed-------------Can be accessed.
Remote (Diff. JRE/Machine)-----Can be accessed---------------Not possible
Happy learning
[ April 07, 2005: Message edited by: Chetan Sahasrabudhe ]