Running a war as a Windows service

For a project a web service packaged as a war file had to be run on a server as a windows service. To be able to do the easily a third party tool was used: https://nssm.cc/ In order to make this possible first the service has to be created: //CMD// nssm install SERVICE "PATH_TO_JAVE_EXE" "-jar service.war" //CMD// And then to let the service be run it is important to tell the service the directory the service has to run in, by: //CMD// nssm set "SERVICE" AppDirectory "PATH_OF_WAR_FILE" //CMD//
No answers yet.