Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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

...

Table of Contents
maxLevel3
minLevel3locationtop
styleborder:1
locationtop
typeflat
separatorpipe

...

Syntax

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

...

Info
titleNote

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

...

Example

Code Block
XML
XML
<!-- 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 an a Top source called SampleEventSource. When a an event notification comes to the EventingProxy Proxy Service, the messages will be logged and then sent to the event source.

See also Also refer to Topics and Eventing.

Excerpt
hiddentrue

Description of the Event Mediator in WSO2 ESB.