Sorry, 2.5. Default bean discovery mode might be a more relevant section:
-
producer methods (as defined in Producer methods) that are not on a session bean and whose bean class does not have a bean defining annotation are not discovered
So in your case you would have to annotate SomeFactory with @Dependent.
|