Change the Java class to the third method of the Windows NT Service (using Java Serivce wrapper)

Source: Internet
Author: User

Recently createdXiao DingdongAnd automatically run after the machine is started.Xiao DingdongSo I want to convert the Java class into a service to run it like tomcat.
So I foundJava service wrapper.
Here are some of the places I want to use.

Change the Java class to the third method of the Windows NT Service (using Java Serivce wrapper)

Three methods for Integrating JAVA service wrapper:
1. UseWrappersimpleappClass to start your applicationProgramThis is the simplest and recommended method for Java service wrapper.
2. UseWrapperstartstopappClass. This method is different from the first one in that one class can be used to start the service, and the other class can be used to stop the service. This is especially like a service program such as Tomcat.
3. This method provides a more flexible way to implement services than the first two methods.CodeTo complete. Specifically, it is the implementationWrapperlistenerInterface, when the user's interface class is registeredWrappermanager.In this way, we can customize the commands and corresponding responses received by the Service, such as starting and disabling the service.

The registration form is as follows:

"C:/wrapper_win32_3.1.2/bin/wrapper.exe"-s "C:/wrapper_win32_3.1.2/bin/../CONF/wrapper. conf"

Read the Java service wrapperSource codeLater, I am interested in using C for Windows Services. I want to write some
How is the Java service wrapper service program implemented.

For the original article, see:
Http://wrapper.tanukisoftware.org/doc/english/integrate.html

JNI getting started with helloworld

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.