I have an EAR project, using EJBs. The project is deployed in GlassFish. I am trying to use Spring Security. I would like my implemtation class of UserDetailsService use and EJB. However, when I annotate my implementation class, for instance:
@EJB FooEJB fooEJB;
it is always null. I am also using icefaces, and I do this annotation in my managed beans, and the EJB is never null. Do I need to do something so that my implementation class of UserDetailsService gets a non-null reference to the EJB?