...
Open another terminal, go to
<CEP_HOME>/samples/consumers/wso2-event
and run ant from there.
It builds the sample wso2event consumer and executes it.Note Do not close this terminal. It is required to keep the server running and receive events.
Open another terminal, go to
<CEP_HOME>/samples/producers/service-stats
and run ant from there.
It builds and runs the wso2event producer, which sends sample service stats to the CEP server.Info To configure host, port, username, password and No. of events, use -Dhost=xxxx -Dport=xxxx -Dusername=xxxx -Dpassword=xxxx -Devents=xx.
For example : ant -Devents=10
See the output events received from the CEP via the terminal opened in step 2. For example, given below is the console output of the consumer when sending 5 events from the producer.