[jboss-user] [EJB 3.0] - Re: Multiple implementations of the same business interface
do-not-reply at jboss.com
Tue Apr 7 06:42:08 EDT 2009
anonymous wrote : 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;
anonymous wrote : SLSB2 is a subclass of SLSB1
That's actually not allowed as per the spec:
anonymous wrote : 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.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223985#4223985
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223985
More information about the jboss-user