Exchange Interceptors are unexpectedly applied to even other SwitchYard applications
Issue
- We have 3 SwitchYard applications deployed in our JBoss FSW:
ServiceConsumer,ServiceProvider, andAnotherApp. ServiceProvideris called fromServiceConsumer, andAnotherAppis just another independent application that has nothing to do with the other 2 applications and is “minding its own business”.ServiceProviderhas 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
ServiceProviderapplication. However, theServiceProviderapplication’s interceptorMyInterceptoris intercepting all the calls includingServiceConsumerandAnotherApp’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.