Where should I define/enable my CDI interceptors?
Issue
- I have a common library of interceptors that is included in all of my deployments. I want to be able to enable the interceptor in the
beans.xml
included in the common library instead of the deployment'sbeans.xml
. This would reduce redundancy since I would not have to enable my interceptors in everybeans.xml
in my deployments.
Environment
- JBoss Enterprise Application Platform (EAP) 6.x
- Context & Dependency Injection (CDI)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.