It depends on which application server you want to run you application and also which version of the application server. I think CDI was introduced as part of Java EE 6, so you should see if your application server supports Java EE 6.
Reply to this message by going to Community
Start a new discussion in EJB3 at Community