I use Jboss, EJB3.0 and google guice and works fine. I didn't modify
anything...
2009/12/7 Ignacio de Córdoba
>
> 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
> anno
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 look
You can use google guice (
http://www.tzavellas.com/techblog/2007/07/03/using-dependency-injection-in-struts2-for-stateless-ejbs-part-1/).
I use it and works fine!
2009/12/4 Haroon Rafique
> On Today at 11:58am, JC=>James Cook wrote:
>
> JC> EJB's can only be injected into other EJB's or Serv
On Today at 11:58am, JC=>James Cook wrote:
JC> EJB's can only be injected into other EJB's or Servlets, a struts 2
JC> action is essentially a pojo not a servlet. So you would either have to
JC> do a lookup in the context, or if you are using Spring look at using a
JC> jndi lookup and inject that
EJB's can only be injected into other EJB's or Servlets, a struts 2
action is essentially a pojo not a servlet. So you would either have to
do a lookup in the context, or if you are using Spring look at using a
jndi lookup and inject that reference into your class.
Cookie
-Original Message---
5 matches
Mail list logo