This documentation is for WSO2 Enterprise Service Bus version 4.8.0 . View documentation for the latest release.

All docs This doc
Skip to end of metadata
Go to start of metadata

The Event Mediator redirects incoming events to the specified event topic. For more information, see Working with Topics and Events.


<event xmlns="" topic="" [expression=""] />

UI Configuration

The configuration options for Event Mediator are:

  • Topic Type
    • Static
    • Dynamic
  • Topic - Topic to which the events are published. This can be a static topic, or can be specified using an XPath as a dynamic topic.
  • Expression - XPath expression that builds the message to be published to the topic.


You can configure the Mediator using XML. Click on "switch to source view" in the "Mediator" window.


<!-- Simple Eventing configuration -->
 <definitions xmlns="">

     <sequence name="PublicEventSource" >
            <log level="full"/>
            <event topic="SampleEventSource"/>

     <proxy name="EventingProxy">
         <target inSequence="PublicEventSource" />

In this scenario, when an event notification comes to the EventingProxy proxy service, they are processed by the PublicEventSource sequence, which logs the messages and publishes them to the topic SampleEventSource. Services that subscribe to the topic SampleEventSource will then receive these messages.

See also Sample 460: Introduction to Eventing and Event Mediator.

  • No labels