Turn the Java class into three ways to Windows NT services (using Java Server Wrapper)
Three ways to integrate Java Service Wrapper:
1
The WrappersimpleApp class launches your application, which is the easiest and the method recommended by Java Service Wrapper.
2
WrapperstartStopApp class. This method and the first unique place are, you can use a class boot service, another class to stop the service. This is particularly like a service program like Tomcat.
3 This method provides a more flexible manner than the first two methods. The flexible back is to write code. Specifically, it is true.
WrapperListener interface, register when the user's interface class is started
WrapperManager. This allows us to customize the commands received by the service and the corresponding response, such as launching and closing services.
The form after registration to the service is as follows: "C: /Wrapper_WIN32_3.1.2/bin/wining.exe" -s "c: /wrapper_win32_3.1.2/bin /../ conf / wrapper.conf" read the source of Java Service Wrapper After the code, do Windows services with C, I am interested, ready to write some Java Service Wrapper how to do.