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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content