rzo1 commented on PR #1167:
URL: https://github.com/apache/tomee/pull/1167#issuecomment-2132115318

   > Shouldnt it use injector if cdi is disabled and nothing else 
(owbinjector)? Can mean scanning is wrongly configured for tests no?
   
   We don't have a lot of tests with `@Application`and docs are sparse in that 
area, so might not get it correctly.
   
   Adding the actual test class to `@Classes` of the `@Application` will inject 
the `@Resource` into the test otherwise it seems, that` @Resource` is not 
scanned anywhere else (and the fallbacks only inject `@Inject` fields).
   
   Would that be the actual way to solve it with application composer? (If so, 
we just need to update the docs).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tomee.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to