I want to inject a CDI Bean in a ManagedBean either with the annotation @Inject or @Produce. The CDI Bean which I use is:
@Named @Startup @ApplicationScoped
Make sure you have enabled CDI by putting a WEB-INF/beans.xml file in your application.
WEB-INF/beans.xml