How do we get a reference to beans / resources in a subclass of org.apache.cxf.phase.AbstractPhaseInterceptor?
Issue
- There are
CXF
interceptors (subclasses oforg.apache.cxf.phase.AbstractPhaseInterceptor<Message>
) that are being applied to a web service. - Ideally, users would like to
@Inject
beans and resources into the interceptors. However, it appears that the interceptor instances used byCXF
are notCDI
managed beans and so do not haveCDI
injection. - Is there a good / proper / reasonable way to get beans and references in these interceptors?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- Red Hat JBoss Fuse Service Works (FSW)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.