Skip to main content

Do Not Expect Anything from Mediation Routes

The more decoupled your Routes become the less you can expect from the exchanges. In order to protect against unforeseen exceptions creeping into the system always check for the data that you are expecting before attempting to use it.

For example, if you are expecting a particular XML format in the body of a message then validate it against a XSD file to check it is the correct format before passing it further along the Route. Use cTry components to catch potential problems like that.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!