The latest version for DAS is WSO2 Data Analytics Server 3.1.0. View documentation for the latest release.
WSO2 Data Analytics Server is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.

All docs This doc
Skip to end of metadata
Go to start of metadata


This sample demonstrates how to receive incoming WSO2 events via the WSO2Event receiver. WSO2Event receiver is implemented based on Apache Thrift. This sample does not process incoming events. A  log event publisher is used to log the received events, and to verify the messages.


Set up the prerequisites required for all samples.

Building the sample

Start the WSO2 DAS server with the sample configuration numbered 0007. For instructions, see Starting sample CEP configurations.

This sample configuration does the following.

  • Changes the default Axis2 repo from <DAS_HOME>/repository/deployment/server to <DAS_HOME>/samples/cep/artifacts/0007.

  • Creates an event stream named

  • Creates an event receiver named wso2eventReceiver.

  • Creates an event publisher named wso2eventLogger to log the received messages.

Executing the sample

Open another tab in the CLI and issue the following ant command from the <DAS_HOME>/samples/cep/producers/wso2-event directory.

ant -Dsn=0007

This builds the wso2event client and publishes the events in the <DAS_HOME>/samples/cep/artifacts/0007/org_wso2_event_sensor_stream_1_0_0.csv file to the wso2eventReceiver endpoint. You can view the details of the events that are sent as shown in the log below.

The events received by WSO2 DAS are logged as shown below.

  • No labels