开发者

How to add start/stop functionality to a Java application for registering as a service

We are writing an application in Java and it needs to be start/stoppable by another application, like a service/daemon. We package it in a .jar which encapsulates everythin开发者_开发问答g it needs to run, and put it in a "working directory" which contains configuration files, variable resources, logs, etc.

Is there a good way to be able to start/stop this application from a script or any other application by calling something on it?

Thank you very much for any help!


Try out Commons Daemon

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜