Chapter 8. Implementing a mediation 297
3. To use alternate endpoints retrieved and set in the message header, go to the
Retry tab. Select the Any fault entry from the Retry on drop-down list. Set the
retry count to the value of 3, and select the Try alternate endpoints options
to perform a retry for the next three endpoints, as shown in Figure 8-46.
Figure 8-46 Configuring the Callout node’s retry properties
4. The AccountCreationService_Med mediation module has now implemented a
basic dynamic endpoint lookup and an SLA validation for the first retrieved
endpoint. Save changes in all open editors.
Adding Trace and Fail primitives
For the purpose of this book, we add basic logging and error handling
capabilities to the mediation flow. We add tracing as a first step in the mediation
flow to log the incoming message and to trace the last step in the mediation flow
to log the outgoing message. The Fail primitive terminates the mediation flow in
case of no matching endpoints, a rejection of the SLA check, or in case of failure
of the EndpointLookupACS or SLACheckACS mediation primitive. Before the Fail
primitive we add another trace primitive to log the failure message.
Figure 8-47 shows the complete ACS_Proxy mediation flow.
Figure 8-47 Adding trace primitives and a fail primitive