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 events. Events are generated using an input event file and the event simulator.
Set up the prerequisites required for all samples.
Building the sample
Start the WSO2 DAS 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
- An event publisher named
- Loads the events that are stored in the
events.csvfile via the Event Simulator.
Executing the sample
Navigate to the
<DAS_HOME>/samples/cep/consumers/wso2-event/ directory, and execute the following Ant command using another tab in the CLI:
The other optional parameters that can be used in the above command are defined in the
This builds a client that fetches the the published events in the
<DAS_HOME>/samples/cep/artifacts/0057/eventsimulatorfiles/events.csv file from the
Go to the Event Simulator and click Play to send events stored in the
Received events re logged in the Wso2Event client terminal console as shown below.