You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Setup

Software Requirement

  • JDK 11

Follow Steps below to install Java 11 on CentOS/linux.

    • Update before installing any new program

      yum -y update
    • Install Java 11

      yum install java-11-openjdk
    • Verify Java is Installed

      java –version

CDROUTER Service Setup

For setting up the CDRouter Service of Automatics , clone the repo  << CDRouter Service >> . Once the repo is cloned, please follow the below steps,

  1. Use the command "mvn clean install" to build the .jar file of the CDRouter Service.
  2. . If not added, add it using  , 'CDROUTERS', 'CDROUTER_SERVICE_BASE_URL' and  'CDROUTER_PAGINATION_LIMIT' as the config names in master_config table.  please refere this page (Automatics CDRouter Integration) for more detailed information on how to add the values using UI and Database(MySQL) as well.


    CDROUTERSUrl of different CDRouters
    CDROUTER_PAGINATION_LIMITAdd the pagination value 
    CDROUTER_SERVICE_BASE_URLBase URL of CDRouter Service
  3. In CDrouter service  user should navigate to application.properties and update automatics.url with proper automatics base url and save the changes.please refer this Automatics CDRouter Integration page for more information.
  4. Copy the cdrouterservice-0.0.1-SNAPSHOT.jar of CDrouter Service to a folder in VM. Create a empty folder with the name as 'logs' outside the folder that contains the CDRouter service jar file using the command mkdir logs. Run the below command inside the folder that contains the CDRouter Service jar file to bring the CDrouter Service up in the server.

    nohup java -XX:+UseSerialGC -Dlog4j2.formatMsgNoLookups=true -jar cdrouterservice-0.0.1-SNAPSHOT.jar > logfile.log 2>&1 &
  5. A log file will be created in the logs folder with the name CDRouterService.log. We can check the real time logs of the CDRouter Service using this file. 
  • No labels