Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop Service integration > Program mediations
Choosing a target service and port through a routing mediation
Write a routing mediation and configure it to select a target service and port. If we have migrated a web services gateway that included a routing filter, use this task to recreate the equivalent functions by using a mediation.
One gateway service can map to one or more target services, and (for outbound target services) each target service can have one or more ports as defined in the outbound service WSDL. Without a routing mediation there is no point in mapping multiple targets because the gateway always picks the default destination. To map multiple targets, write a routing mediation then configure it, for each gateway service, to select the target service and target port.
You associate routing mediations with service integration bus destinations.
To pick a target service, you associate the mediation with the gateway service destination.
To pick an outbound service port, you associate the mediation with the outbound service destination.
Use the steps described in Write a routing mediation to help you write a mediation application that contains a routing handler, install it into WAS and associate it with a destination.