With Payara server, we are thinking of
creating an option in server-specific app descriptor to disable CDI
completely either for whole application or just for specific modules.
I think it would make sense to consider some standardization of this approach in CDI 2, as I've seen issues with this on stackoverflow also with other app servers. Or is it already planned?
Ondrej