R Integration for WSO2 Complex Event Processor (CEP) using jri
1. Add the following line to /etc/apt/source.list where ${version} should be trusty or precise or utopic or lucid according to your Ubuntu release`deb https://cran.rstudio.com/bin/linux/ubuntu ${version}/` 2. Authenticate
`sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9` 3. Update
`sudo apt-get update` 4. Install R
`sudo apt-get install r-base-dev r-cran-rjava`
- Set R_HOME
(eg:export R_HOME = /usr/lib/R
) - Set JRI_HOME
(eg:export JRI_HOME = /usr/lib/R/site-library/rJava
) - Copy JRI.jar, JRIEngine.jar, REngine.jar files to
{CEP_HOME}/repository/components/lib
- Include the following line in the
wso2server.sh
file in{CEP_HOME}/bin
in the last do-while loop-Djava.library.path=$JRI_HOME
- Use maven clean install