Exchange Interceptors are unexpectedly applied to even other SwitchYard applications

Solution Unverified - Updated -

Issue

  • We have 3 SwitchYard applications deployed in our JBoss FSW: ServiceConsumer, ServiceProvider, and AnotherApp.
  • ServiceProvider is called from ServiceConsumer, and AnotherApp is just another independent application that has nothing to do with the other 2 applications and is “minding its own business”.
  • ServiceProvider has an exchange interceptor (MyInterceptor). According to the documentation:
    • “An interceptor is invoked for all message exchanges in an application, so if you only care about a specific service you will want to add a conditional to before() and after() to check for service name… “
  • So it should only intercept calls to services in the ServiceProvider application. However, the ServiceProvider application’s interceptor MyInterceptor is intercepting all the calls including ServiceConsumer and AnotherApp’s.

Environment

  • Red Hat JBoss Fuse Service Works (FSW)
    • 6.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