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.xmlincluded 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.xmlin 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
