This content has been marked as final. Show 2 replies
How can I configure my EAR to inject a specific implementation of the interface?
You can use the beanName attribute of the @EJB
@EJB (beanName="SLSB2") private SLSBInterface bean;
SLSB2 is a subclass of SLSB1
That's actually not allowed as per the spec:
EJB3 spec, section 4.6.2 - "Optionally", bullet point 6
A session bean class must not have a superclass that is itself a session bean class.
I see. Thanks a lot for this quick response.