Hi
I have a custom login module that extends UsernamePasswordLoginModule
I want to inject cdi managed beans from my application but it does not seem to work, they just stay null.
Is this supposed to work or is there a workaround? Now i get the bean manager and inject the beans programatically.
Bean<UserService> bean = (Bean<UserService>) bm.getBeans(UserService.class).iterator().next();
CreationalContext<UserService> ctx = bm.createCreationalContext(bean);
userService = (UserService) bm.getReference(bean, UserService.class, ctx);
Most likely, injection is not supported at that location (CDI appears to be working since getting a reference manually works)