That's a bit strange since usually the CDI implementation complains about injections points it can't fulfill. The only case where this usually happens when the instance doesn't come from the container (e.g. you have used new()), in which case injection can't occur.
1 of 1 people found this helpful
How does the object of the "pojo class in the web app that @Inject sessionbean" get created?
Injection only happens if the container creates the object for you.
This is an existing project where I slowly wanna implement injections, and you guys are right.
The pojo is created with the new operator.
So I guess I have to use @injection all the way... starting from the servlet ??
Yep, @Inject (or @EJB) is the way to go.