Where should I define/enable my CDI interceptors?

Solution Unverified - Updated -

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's beans.xml. This would reduce redundancy since I would not have to enable my interceptors in every beans.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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.