Why are CDI beans not detected if the beans.xml is removed from the module in EAP7 this is part of the CDI 1.1 specification
Issue
- I have a module with different CDI beans but not all are correctly working if I remove the empty beans.xml. As this is part of the CDI 1.1 specification I expect this to work. Is this a bug?
- What is the difference between explicit and implicit detection of CDI beans for a module?
- If a module contains a class which extends
javax.enterprise.inject.spi.Extensionan no beans.xml no CDI annotations are processed, why it is not working without beans.xml?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
