How to implement exception handling or compensation for SwitchYard services in FSW 6
Issue
- Regarding the
RemoteInvoker, we have a question about using it in anExchangeInterceptor. Can we call a service on and after event of aExchangeInterceptor? - Consider the scenario where we want to call a compensation service if the service being invoked returned an error.
- We would like to have a common error handling to multiple services, so an approach like an interceptor (with routing to compensate service or any other) for all the application services would be required.
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.x
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.
