This content has been marked as final.
Show 1 reply
-
1. Re: Can't inject resource when not using Servlet
wolfgangknauf Mar 2, 2009 10:50 AM (in response to rnicholson10)Hi Ross,
as far as I know, injection is only possible for certain types of resources where the server can control the usage and object creation. Those types are: SessionBeans, Servlets, JSF managed beans, ApplicationClient main classes. For everything else, JavaEE5 injection is not possible.
The server has no chance to hook into the creation of your Pojo, so it cannot perform injection.
Hope this helps
Wolfgang