You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "TURPIN Michel (JIRA)" <ji...@apache.org> on 2017/08/21 15:50:00 UTC
[jira] [Created] (TOMEE-2119) Providers are not always integrated
with CDI
TURPIN Michel created TOMEE-2119:
------------------------------------
Summary: Providers are not always integrated with CDI
Key: TOMEE-2119
URL: https://issues.apache.org/jira/browse/TOMEE-2119
Project: TomEE
Issue Type: Bug
Components: TomEE Core Server
Affects Versions: 7.0.3
Reporter: TURPIN Michel
This might be related to TOMEE-2045 and I haven't tested against the latest sources, but here is my issue :
When registering a provider (say an ExceptionMapper) with its class through a Feature, no injection ever happen even if the provider is annotated with {{@ApplicationScoped}} for instance.
The problem is solved when the {{@Provider}} annotation is also present on the provider.
By the way, I fail to see where it is specified a provider should be enabled with CDI injection. If one could tell me what part of the spec defines this behavior it could help me so I can make sure the tools I'm working on should be safe to use on other application servers and also get out of the "It works but I don't know why" zone.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)