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

prevsetko do-not-reply at jboss.com
Sun Aug 5 13:43:49 EDT 2007


Hi,
I have problem with @EJB injection in Struts action. Using context.lookup works. 
import javax.ejb.EJB;
  | 
  | public class ProjectListAction {
  | 
  | 	@EJB
  | 	ProjectBean projectBean;
  | ....
  | 
projectBean remains null. Should it works also in struts?


I am using JBoss AS 4.2 GA, <web-app ... version="2.5">

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070986#4070986

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070986



More information about the jboss-user mailing list