Hey all,
I've been investigating an issue a user reported with 10.0.0-M1 [1] with Richard yesterday. The user configured a ManagedExecutorService Resource but omitted configuring a ContextService (which is required in TomEE 10). This causes the ManagedExecutorService to default to the "Default Context Service" ContextService, which doesn't get configured automatically because it is not injected anywhere. This leads to an ambiguous exception that "Default Context Service" is unknown.
If everything is configured (ManagedExecutorService + ContextService) and linked together it works. If nothing is configured it works as well (ContextService gets auto configured when ManagedExecutorService is auto configured). However Configurations that were valid in TomEE 9 as the one reported in [1] are now invalid.
I'm not sure how this is actually intended to be used, documentation for ManagedExecutorService is outdated as it doesn't mention the requirement of a ContextService yet.
Should it work and the ContextService gets auto configured if not explicitly configured? Or fail and tell the user in a more understandable way that requirements have not been met?
Thanks Markus [1] https://issues.apache.org/jira/browse/TOMEE-4354
