Versions Compared

Key

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

...

This sample demonstrates how to filter some incoming event attributes and add to another topic using simple pass-through with JMS adaptor and WS-Event-Local adaptor. Because we do not use any execution plan here, there is no Siddhi query.

Prerequisites

  1. See Prerequisites in CEP Samples Setup page.

...

  1. If you use ActiveMQ, add the following JMS related JARs from ActiveMQ distribution directory to <CEP_HOME>/repository/

...

  1. components/lib directory

...

  1. . Also see JMS Transport for more information about required JARs.
    • <ActiveMQ_HOME>/activemq-all-5.7.0.jar

    • <ActiveMQ_HOME>/lib/ geronimo-jms_1.1_spec-1.1.1.jar

Note

Start the ActiveMQ server before the CEP server starts.

Building the Sample 

  1. Start the WSO2 CEP server with the sample number as ./wso2cep-samples.sh -sn 0003  (or on Windows, wso2cep-samples.bat -sn 0003). This will start up the server with the configuration files required for this samples.

    Here when executing the sample with above command. There are some operations occurred in the backend. There is file called "stream-manager-config.xml" copied to the <CEP_HOME>/repository/conf from the artifacts directory of the sample. This file will be used in the server startup to create the stream definitions to run the sample.

    Then, default Axis2 repo will be pointed to the directory <CEP_HOME>/sample/artifacts/0003 (by default Axis2 repo is <CEP_HOME>/repository/deployment/server). There will be limited functionality in sample server startup mode, then don't proceed much tasks in the server when it is start-up in the sample mode.

...