WSO2 Complex Event Processor is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.
||
Skip to end of metadata
Go to start of metadata

Introduction

This sample demonstrates how to publish WSO2 events via Thrift transport to a WSO2 Event client. This sample does not do any processing on the outgoing event. Events are generated using an input event file and the event simulator.

Prerequisites

Set up the prerequisites required for all samples.

Building the sample 

Start the WSO2 CEP server with the sample configuration numbered 0057. For instructions, see Starting sample CEP configurations. This sample configuration creates the following.

  • A stream with the ID org.wso2.event.sensor.stream:1.0.0
  • An event publisher named eventPublisher
  • An events have been stored in events.csv which are loaded to event simulator.

Executing the sample

Navigate to the  <CEP_HOME>/samples/cep/consumers/wso2-event/ directory, and execute the following Ant command using another tab in the CLI: ant -Dsn=0057

The other optional parameters that can be used in the above command are defined in the <CEP_HOME>/samples/cep/consumers/wso2-event/build.xml file.

This builds client which fetches the the published events in the <CEP_HOME>/samples/cep/artifacts/0057/eventsimulatorfiles/events.csv file from the emailPublisher endpoint.

Go to the event simulator and click play to send events contain in events.csv file

 

 

Received events will be shown in the Wso2Event client terminal console.

 

 

  • No labels