Re: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-08 Thread irene zeller sancho
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

Re: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-07 Thread 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 annotations in current class, so if you injected a Session Bean in a super.execute() method in a parent class, it was not look

Re: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-06 Thread irene zeller sancho
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

RE: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-04 Thread Haroon Rafique
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

RE: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-04 Thread James Cook
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---