The input WSO2Event event adapter handles WSO2 events. It receives WSO2 events over Thrift using TCP, SSL/ TCP, HTTP, HTTPS. You can also send events via HTTP and HTTPS in a predefined JSON format, using the REST API data receiver.
Configuring input WSO2Event event adapter
By default, WSO2 products come with a configured WSO2Event event adapter by the name
DefaultWSO2EventInputAdaptor to receive fired events.
Have only one i nput WSO2Event event adapter in the product to receive incoming events. However, to send WSO2 events out, you can use several o utput WSO2Event event adapters.
By default, the input WSO2Event event adapter starts up with the product, and its default ports are as follows:
tcp port: 7611
ssl port: 7711
http port: 9763
https port: 9443
Configure using the management console
Follow the instructions below to configure input WSO2Event event adapter using the management console. This deploys the event adapter in the
- Log in to product's management console, and click Configure.
- Click Input Event Adaptors in the Event Processor Configs menu, and then click Add Input Event Adaptor.
LocalWSO2EventReceiverfor Event Adaptor Name, and select
wso2eventfor Event Adaptor Type as shown below.
Click Add Event Adaptor.
Configure using a configuration file
Follow the instructions below to configure input WSO2Event event adapter using a configuration file.
Create an XML file with the following input WSO2Event event adapter configurations. Input event adapter implementation must start with
<inputEventAdaptor>as the root element.
Add the XML file to the
<PRODUCT_HOME>/repository/deployment/server/inputeventadaptors/ directory. Since hot deployment is supported in the product, you can simply add/remove input event adapter configuration files to deploy/undeploy input event adapters to/from the server.
Configuring input WSO2Event event adapter message properties
|Input Event Adaptor Name||The name of the input event adapter.|
|Stream Name||The name of the incoming WSO2 event stream.|
|Stream Version||The version of the incoming WSO2 event stream.|
|Input Mapping Type||The incoming event type to be mapped. The Input WSO2Event event adapter supports only WSO2Event mapping type.|