1 Reply Latest reply on Mar 8, 2019 6:31 PM by ericjvandervelden

    A bean with @Dependent scope is not seen by Weld, but in the reference at 15.6.2 it says it does.

    ericjvandervelden

      Take for example the greeter quickstart. In beans.xml I say: bean-discovery-mode="all". There is a Resources bean, which has no annotation. In weld-probe I see that the scope is @Dependent. Now I make bean-discovery-mode="annotated". Then greeter does not deploy anymore, and I when I give Resources  @ApplicationScoped it deploys.

       

      But in the Weld reference says in 15.6.2 Implicit bean archive that @Dependent is a bean defining annotation. So why do I have to give Resources an @ApplicationScoped annotation?