Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Open a terminal, go to <CEP_HOME>/samples/consumers/wso2-event and run ant from there.

    It builds the sample wso2event consumer and executes it.

    Info

    Do not close this terminal. It is required to keep the server running and receiving events.

  2. Open another terminal, go to <CEP_HOME>/samples/producers/pizza-shop and run the following command:

    Code Block
    ant pizzaPublisherClient

    It builds and runs theĀ wso2event producer, which sends sample pizza orders and delivery data to the CEP server.

  3. From the terminal opened in step 2, see the details of the events sent. Note that it takes around 30 seconds to complete sending the events as we do time-based analysis in this sample.

    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


    For example, given below is part of the console output of the consumer when sending events from the producer.