Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

WSO2Event event publisher handles WSO2 events. It sends WSO2 events over Thrift using TCP, SSL/ TCP, HTTP, and HTTPS protocols to any external server, which can receive them.

...

Code Block
languagexml
<eventPublisher name="WSO2EventOutputEventAdapter" statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventpublisher">
 ................
  <to eventAdapterType="wso2event">
    <property name="username">wso2event-user</property>
    <property name="protocol">thrift</property>
    <property name="publishingMode">non-blocking</property>
    <property name="publishTimeout">0</property>
    <property name="receiverURL">tcp://localhost:7661</property>
    <property name="authenticatorURL">tcp://auth-host:7661</property>
    <property encrypted="true" name="password">jkFhzj2US/jSokI/gYjdMpBaG1OaCV/XgamNwSPsLglQ1ALTA1yBUTexgZ8JEiZoz/WL9H5Ncas1Dq/wMbVlL1OueUTXoL1Kcm63kEf1YWIkoD9ySk0FCFVFWgCsGhH8cAVabeCEEpE+qhq0bFoXTfqYTKjoP2+F1B4EjhDsu7M=</property>
  </to>
</eventPublisher>

The above adapter properties are described below.

Adapter Property
Description
Configuration file propertyExample
Receiver URL The URL of the target receiver.
receiverURL

tcp://localhost:7661

Authenticator URL The URL of the authenticator. By default, the port of this URL
of the authenticator
is derived by adding 100 to the port of the receiver URL. You can change it as required.
authenticatorURL

tcp://auth-host:7661

User Name Username for the listener.
username

wso2event-user

Password Password for the listener.
password
wso2event-password
Protocol The communication protocol that
will be
is used to publish events
protocol
thrift/binary
Publishing Mode
Events
The mode for publishing
mode
events. Non-blocking refers to asynchronous publishing, and blocking refers to synchronous publishing
publishingMode
non-blocking/blocking
Publishing Timeout
Positive
The positive integer to denote the
timeout
timeout for the non-blocking publishing mode
publishTimeout
0

Related samples

For more information on wso2event event publisher type, see the following samples in WSO2 CEP Documentation.

...