...
...
...
...
...
...
...
...
...
...
Table of Contents maxLevel 3
maxLevel | 3 |
---|
Introduction
This sample demonstrates how to create an event table and use it.
...
Update the pizzaOrdersTable according to the previousOrders table.
This sample
This samples outputs custom text events using a logger event publisher. Custom events are events with custom mappings that does not adhere to the default event formats. For more information on event formats, see Event Formats.
Prerequisites
See Prerequisites in CEP Samples Setup page.
Building the sample
Start the WSO2 CEP server with the sample configuration numbered 0116. For instructions, see Starting sample CEP configurations. This sample configuration does the following:
Points the default Axis2 repo to <CEP_HOME>/sample/artifacts/0116 (by default, the Axis2 repo is <CEP_HOME>/repository/deployment/server).
Executing the sample
Open another terminal, go to <CEP_HOME>/samples/producers/http and run the following command:
ant -Durl=http://localhost:9763/endpoints/pizzaOrderEventReceiver -Dsn=0116
It builds the http client and publishes the events at <CEP_HOME>/samples/artifacts/0116/pizzaOrderEvents.txt to the pizzaOrderEventReceiver http endpoint.
You can see the events getting received by CEP by the logs in its console