The Event Mediator (New in version 4.0) redirects the incomming incoming events to the Event topics.
...
Table of Contents |
---|
maxLevel | 3 |
---|
minLevel | 3 | location | top |
---|
style | border:1 |
---|
location | top |
---|
type | flat |
---|
separator | pipe |
---|
|
...
Syntax
Code Block |
---|
|
<event xmlns="http://ws.apache.org/ns/synapse" topic="" [expression=""] />
|
...
Info |
---|
|
You can configure the Mediator using XML. Click on "switch to source view" in the "Mediator" window.
|
...
Example
Code Block |
---|
|
<!-- 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 |
---|
|
Description of the Event Mediator in WSO2 ESB. |