Mantis - Resin
Viewing Issue Advanced Details
4636 minor always 06-21-11 10:33 07-05-11 10:39
ChrisC  
ferg  
normal  
closed 4.0.19  
fixed  
none    
none 4.0.20  
0004636: CDI Alternatives don't work when injecting into EJBs
When you do @Inject and there is an alternative implementation declared (with annotation + entry in beans.xml), a correct implementation is injected.
However, if you do similar injection inside an EJB, you will get standard implementation, not the alternative.

Tested with a @Stateless and @Singleton EJB.
Attached example maven project
 resin-test-alternative.tar.gz [^] (2,098 bytes) 06-21-11 10:33

Notes
(0005349)
ferg   
07-05-11 10:39   
ioc/0604