Is there a way to use @Inject or @EJB in a CXF interceptor? I know that I can still do the JNDI lookup, but I would prefer to avoid it.
It seems strange to me that the JAX-WS handlers are managed, but the CXF hooks are not. Can it be controlled? I use annotations to add my interceptors to the endpoint ( @org.apache.cxf.interceptor.InInterceptors and @org.apache.cxf.interceptor.InInterceptors ), can it be processed using the configuration file?
Configuration:
- Java 6
- JBoss EAP 6.1 (AS 7.2)
- CXF 2.6.6
source share