Output Event Adaptors

Configuring WSO2Event Output Event Adaptor

WSO2Event output event adaptor handles WSO2 common events and is used to publish events over Thrift using TCP, SSL, HTTP, and HTTPS. You can send output events to any other WSO2Event server from the CEP, using Thrift over TCP, SSL, HTTP, or HTTPS.

The steps below explain how to configure using the management console or using an XML file in step 5.

  1. Log in to the CEP management console, select the Output Event Adaptors menu and then click Add Output Event Adaptor.

  2. Enter details in the form that appears and click Add Event Adaptor button at the end of the form. For example,
    Create Event Adaptor
    Following values are used in the configuration above:

  3. After a adapter is successfully added, you can change its configuration and redeploy it. To do this, click the Edit link associated with it. You can also click the other links associated with it to delete it or enable statistics and tracing.

  4. An XML based editor opens allowing you to edit the event adaptor configuration from UI itself, without having to edit the file in the file system. Do your modifications and Update.

  5. you can specify a event adaptor configuration using an XML file and save it in <PRODUCT_HOME>/repository/deployment/server/outputeventadaptors directory, which is the output event adaptor deployment directory. Since hot deployment is enabled, you can simply add/remove files to deploy/undeploy from the server.

    Create the XML file with the following WSO2Event event adaptor configurations. Output event adaptor implementation must start with <outputEventAdaptor> root element.



    <outputEventAdaptor name="outputWSO2EventAdaptor" statistics="disable"
                                                                 trace="disable" type="wso2event" xmlns="http://wso2.org/carbon/eventadaptormanager">
                    <property name="username">admin</property>
                    <property name="receiverURL">tcp://localhost:7661</property>
                    <property name="password">admin</property>
                    <property name="authenticatorURL">ssl://localhost:7761</property>
                </outputEventAdaptor>


For more details on creating different types of event adaptors, Please refer the official documentation Here.