A routing slip tells a message which services it should visit and in what order. In ESB Toolkit 2.1, model that list as an itinerary.
Give each step a clear responsibility such as validating, transforming, or sending the message. Start with two steps, exercise a successful message, then force a controlled error at the second step and confirm that the fault records where processing stopped. Compare the design with an orchestration that hardcodes the same sequence before choosing the more maintainable version.
A two-step example
Put a transformation first and a messaging service second. Use the same synthetic request to test two destinations by selecting two itinerary variants. If the second step fails, capture the itinerary name, step and message correlation ID in the fault path. A routing slip makes the order configurable, but each service still needs a contract for what it receives and returns.
Leave a Reply