[jboss-user] [EJB 3.0] - Re: @EJB injection with Struts2
ALRubinger
do-not-reply at jboss.com
Mon Aug 6 11:24:45 EDT 2007
Ah; you can't inject into a Struts Action class; only into EJB3 container-managed objects (in JBoss 4.x, JBoss 5 supports Servlet Injection).
You can replace the @EJB injection with a Context.lookup() call to JNDI to obtain your EJB proxy object.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071232#4071232
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071232
More information about the jboss-user
mailing list