Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [EJB 3.0] - Re: @EJB injection with Struts2

scott.stark@jboss.org

2007-08-06


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
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.