-
1. Re: Null InjectionPoint when injecting EJBs
kwintesencja Jul 26, 2012 1:35 PM (in response to kwintesencja)Just to update, ive also tested with JBoss 7.1.1 and Glassfish 3.1.2.2(weld 1.1.8) and same problem.
Im reading this thread: https://community.jboss.org/thread/179388 and it suggests @Inject over @EJB, the only limitation is with remote session beans which is not my case.
-
2. Re: Null InjectionPoint when injecting EJBs
mkouba Jul 31, 2012 5:30 AM (in response to kwintesencja)This scenario seems legal and it should work according to CDI 1.0 spec. However the question is whether injection of InjectionPoint on SLSB should be possible. I think it may lead to inconsistencies - SLSB should not have any state as it is usually pooled and reused for every invocation.
Note that you can use dependent stateful session bean to get your example working...
Anyway I filed an issue:
-
3. Re: Null InjectionPoint when injecting EJBs
kwintesencja Jul 31, 2012 8:08 AM (in response to mkouba)I see and i agree with you. For now im injecting the SLSB in a CDI bean and thus got the IP injection working.
Thanks for your enlightening answer.