This content has been marked as final.
Show 1 reply
-
1. Re: A bean with @Dependent scope is not seen by Weld, but in the reference at 15.6.2 it says it does.
ericjvandervelden Mar 8, 2019 6:31 PM (in response to ericjvandervelden)I found out that when bean-discovery-mode="annotated", it differs if the Resources class in the greeter quickstart the scope @Dependent has or not. If it has no annotation, greeter does not deploy; if it has the @Dependent annotation, it deploys.
When the bean-discovery-mode="all", and Resources has no annotation, it gets one: @Dependent. So greeter deploys! You can see the @Dependent scope in weld-probe.