Best Method to run a Java Application as a *nix Daemon or Windows Service?

后端 未结 3 1769
盖世英雄少女心
盖世英雄少女心 2020-12-15 18:40

I am looking for the best method to run a Java Application as a *NIX daemon or a Windows Service. I\'ve looked in to the Java Service Wrapper, the Apache Commons project \'

3条回答
  •  情深已故
    2020-12-15 19:27

    Another option is WinRun4J. This is windows only but has some useful features:

    • 32 bit and 64 bit support
    • API to access the event log and registry
    • Can register service to be dependent on other services (i.e serviceA and serviceB must startup before serviceC)

    Its also open source friendly (CPL) so no restrictions on use.

    (full disclosure: I work on this project).

提交回复
热议问题