Switchyard Exchange Interceptor Property CDI Injection is not working
Issue
- Imagine that there is a
SwitchyYard
exchange interceptor and users want to access properties (either defined inEAP
) or defined on theSCA compisite
from inside the exchange interceptor. Users are able to access the properties in a normal service bean with@Property
annotation.
@Property(name="myProperty")
private String myProperty;
However this does not work for an interceptor if used like the following in the after method. But all these approaches return null
.
myProperty = exchange.getContext().getPropertyValue("myProperty");
- Is there a way to access properties defined in an exchange interceptor?
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.