The mediator is one of the service components that Oracle SOA Suite provides. Mediator component allows you to route events (messages) among different components. Following are the main functionality of the mediator component:
- Routing- Mediator can route the incoming data to internal components of the composite or the external references (e.g. external services, adapters etc.) of the composite. Mediator lets you define the routing rule to route the incoming data, which can be executed parallelly or sequentially. Click here to see how to use routing?
- Filtering- Mediator can define a filter expression that specifies the service to be invoked if the payload satisfies filter condition. Mediator provides Content-Based and Header-Based Routing i.e. it enables you to define rules to route the incoming data based on the message payload or message headers. For example, suppose you received order data containing order details like item description, item amount, delivery location and you want to route data to different web services on the basis of delivery location, then you can use content-based routing functionality of mediator. Similarly, you can use header-based routing to route a message based on the message header.
- Validation- Mediator can validate the incoming message payload using a Schematron or an XSD file. Click here to see how to use validation?
- Transformation- Mediator can perform XSLT transformation to transform incoming data from one XML schema to another. Click here to see how to use transformation?
Other features of Mediator include:
- Message Resequencing
- Echoing of the incoming message
- Error handling
- Event handling
Comments
Post a Comment