Hello,
I'm wondering about design of my application. We a lot of EJB (EJB3) using the @Stateless and @EJB tags. All EJB's are now local, but we're considering changing a few in remote interface.
Quite a few EJB's return EJB's also and I wonder if that is correct in the first place, and secondly if this still works (and is correct) if the beans would become remote EJB's:
@Stateless @Local class BeanABean implements BeanA { .. } @Stateless @Local class BeanBBean implements BeanB { @EJB BeanA beanA; BeanA getBeanA() { return beanA; } }