struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fernandes Celinio" <cfernan...@sopragroup.com>
Subject [Struts 2 + EJB 3] injection of EJBs into struts 2 actions
Date Fri, 04 Dec 2009 11:36:37 GMT
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.
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message