[jboss-user] [EJB 3.0] - Re: Can't inject resource when not using Servlet
Wolfgang Knauf
do-not-reply at jboss.com
Mon Mar 2 10:50:06 EST 2009
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
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214226#4214226
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214226
More information about the jboss-user
mailing list