Switchyard Exchange Interceptor Property CDI Injection is not working

Solution Unverified - Updated -

Issue

  • Imagine that there is a SwitchyYard exchange interceptor and users want to access properties (either defined in EAP) or defined on the SCA 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.

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