How to implement exception handling or compensation for SwitchYard services in FSW 6

Solution Unverified - Updated -

Issue

  • Regarding the RemoteInvoker, we have a question about using it in an ExchangeInterceptor. Can we call a service on and after event of a ExchangeInterceptor?
  • 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, 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