2 Replies Latest reply on May 9, 2013 9:23 AM by krivko

    SwitchYard fault handling

    krivko

      Hi!

       

      Is there such thing as exception/fault listener that intercepts the SY message before fault leaves i.e. via SOAP or any other binding?

       

      Thanks for your answers!

        • 1. Re: SwitchYard fault handling
          splatch

          Hey,

          There is a org.switchyard.bus.camel.ErrorListener interface. If you will implement it and annotate with @Named in CDI deployment unit it will receive notification about exceptions occured during mediation. However you should not affect the message here, since it's rather for storing message somewhere else for audit purposes. If you want transform SOAP Fault then the best usecase is custom Transformer called during handling fault repiles. To verify payload types just enable debug logging for org.switchyard.handlers category.

          1 of 1 people found this helpful
          • 2. Re: SwitchYard fault handling
            krivko

            Thanks for the useful tip!

             

            The SOAP binding I mentioned was only an example

             

            Regards!