Switchyard Exchange Interceptor Property CDI Injection is not working
Issue
- Imagine that there is a
SwitchyYardexchange interceptor and users want to access properties (either defined inEAP) or defined on theSCA compisitefrom inside the exchange interceptor. Users are able to access the properties in a normal service bean with@Propertyannotation.
@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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
