...
- Clone the source code from https://code.rdkcentral.com/r/admin/repos/rdk/tools/wt-service
- Open command prompt from directory wt-service and run the command mvn clean install. This will generate jwtwt-service.jar file in target directory.
- Copy the jar file to the VM where the service to be deployed.
- Ensure that Candela Lanforge JSON APIs are accessible from wt-service deploying VM.
Deployment of wt-service
Deployment as standalone java application
Softwares Required:
Following softwares are required to deploy wt-service
...
- Copy the jar file to the VM where the service to be deployed
- Rename the jar to WTService.jar.
- Run the command java -jar WTService.jar . The service should be up and running.
Deployment using apache-tomcat
Softwares Required:
Following softwares are required to deploy wt-service
- Change the packaging in pom.xml to war.
- Run the command mvn clean install. This will generate wt-service.war file in target directory.
- Rename the jar to WTService.war.
- Copy the file to {apache-tomcat_base_dir}/webapps . Start the server by executing ./startup.sh in {apache-tomcat_base_dir}/bin
- The service should be up and running. The logs will be generating in {apache-tomcat_base_dir}/bin/logs directory
Configuration
- Configure the property 'wtSimulatorBaseUrl' in extra properties of Device from Device Manager UI. This property holds the base url to the lanforge JSON API. eg: http://localhost:8080. The gateway device ti be used for candela testing should have this property configured.
- Configure the property 'wt.service.base.url' in Automatics Properties and this holds the base url of WTService. To add property please follow steps in Add Property
...