Skip to main content

[Short Blog] Testing RDBMS store with WSO2 APIM SI analytic triggers

 This blog post contain steps and instructions on testing RDBMS store with SI analytics. The common problem while testing SI is complexity of calling stream without tooling UI. Here, we used siddhi triggers on the siddhi script it self to trigger RDBMS event process.

  1. Download SI product pack from WSO2 Github https://github.com/wso2/streaming-integrator/releases
  2. Download mysql-connector-java-8.0.18 MySQL DB driver and copy it into the `<SI_HOME>/lib`
  3. Create database named production in MySQL
  4. Create table SweetProductionTablewith following SQL:

5. Insert data into the table with following SQL:

3. Create a file Store-rdbms.siddhi and add the following content into the `<SI_HOME>/wso2/server/deployment/siddhi-files/Store-rdbms.siddhi` file.

4. Start the SI server with sh <SI_HOME>/bin/server.sh command. Replace <SI_HOME> with SI home location.

5. Check the logs getting printed on the SI console.

Comments