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.
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
- An event publisher named eventPublisher
- An events have been stored in events.csv which will be loaded to event simulator
Executing the sample
Navigate to the
<CEP_HOME>/samples/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 client which fetches the the published events in the
<CEP_HOME>/samples/artifacts/0057/eventsimulatorfiles/events.csv file from the
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.