I have the same problem.
Is there something we have missed in the jboss
configuration to make local interfaces work ?
Anyone who has figured this out ?
Sorry, I finally did (and forgot to post it :)
Local interfaces are registered in local/BeanName. You have to remember the standard way to call them (no PortableRemoteObject.narrow call) and, my fault, that Collection of these ARE NOT SERIALIZABLE (that is, you cannot return these from a call to a remote EJB, and have to use Object Values or similar). If you implement exactly the same example as in the "Professional EJB" chapter that is available in theserverside.com, everything works.
What version of JBoss supports local interfaces?
> Sorry, I finally did (and forgot to post it :)
> Local interfaces are registered in local/BeanName.
Did you make it work on the 2.4.3? I have tried to look up it by given "local/BeanName" but only get an "local not bound" Exception?
Would you please give an working example?
In order to use local interfaces you have to add next section in deployment descriptor for your EJB:
You can refer to this EJB from other beans by adding ejb-local-ref to corresponding descriptor:
and, of course you have to implement javax.ejb.EJBLocalObject and javax.ejb.EJBLocalHome in yours remote and home interface respectively.