This documentation is for WSO2 ESB version 4.5.0. View documentation for the latest release.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The Event Mediator (New in version 4.0) redirects the incoming events to the Event topics.

The Qpid Server can be used as as an event broker with the Event Mediator. 



Syntax

<event xmlns="http://ws.apache.org/ns/synapse" topic="" [expression=""] />

UI Configuration

The configuration options for Event Mediator are:

  • Topic Type
    • Static
    • Dynamic
  • Topic - Event topic to which the events are dispatched.
  • Expression - Xpath to extract the message to be submitted.

Note

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


Example

<!-- Simple Eventing configuration -->
 <definitions xmlns="http://ws.apache.org/ns/synapse">

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

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

In this scenario, the user has defined a Top source called SampleEventSource. When an event notification comes to the EventingProxy Proxy Service, the messages will be logged and sent to the event source.

Also refer to Topics and Eventing.

  • No labels