Which appserver are you using? I use JBoss for struts2 plugin. I hace to modifyit as it didn't support JBoss 5 naming conventions (at least for me) and it only looked for annotations in current class, so if you injected a Session Bean in a super.execute() method in a parent class, it was not looked up.
Anyway, I am considering moving to EJB 3.1 and hope I can find a new way of injecting new EJBs... Fernandes Celinio wrote: > > Hi, > I know that it is not possible to inject EJB in Struts 2 actions. > The following annotation would not work : > @EJB > MyBeanLocal mybean; > > But how come ? Since a Struts action is a servlet and injection works in > a servlet, injection should work. > > Thanks for enlightening me. > > > -- View this message in context: http://old.nabble.com/-Struts-2-%2B-EJB-3--injection-of-EJBs-into-struts-2-actions-tp26641329p26683752.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org