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

Solution Verified - Updated -

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.Extension an 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content