Exchange Interceptors are unexpectedly applied to even other SwitchYard applications
Issue
- We have 3 SwitchYard applications deployed in our JBoss FSW:
ServiceConsumer
,ServiceProvider
, andAnotherApp
. ServiceProvider
is called fromServiceConsumer
, andAnotherApp
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()
andafter()
to check for service name… “
- “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
- So it should only intercept calls to services in the
ServiceProvider
application. However, theServiceProvider
application’s interceptorMyInterceptor
is intercepting all the calls includingServiceConsumer
andAnotherApp
’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.