0

I'd like to set a webapp using JSF (2.2) accessing CDI beans (with @Inject annotation). I've read a lot of information on the web showing how to use CDI on a servlet, but I couldn't find out how to use it on JSF beans running on a Tomcat 7. I know that behaviour happens naturally on WildFly or JBoss, but I'd like to do the same on a Tomcat Server...

I appreciate any help! Thanks!

s_bighead
  • 689
  • 9
  • 20
  • Try something before ask for a tutorial! and see this http://stackoverflow.com/questions/12139050/cdi-on-tomcat-7-does-it-make-sense?rq=1 – Arturo Volpe Jul 24 '14 at 01:43
  • not sure about JSF version, but I think you should give TomEE a try - http://tomee.apache.org/examples-trunk/cdi-basic/README.html – Leo Jul 24 '14 at 02:51

0 Answers0