Alex Rivera | Logout

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

Asked 2008-08-25T01:11:59.080
20

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 'jsvc', and the Apache Commons project 'procrun'. So far, the Java Service Wrapper looks like it's the best option... but, I'm wondering if there are any other "Open Source friendly" licensed products out there.

Edit
Report

1 Answer

3

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).

answered 2009-05-11T08:02:31.237

Your Answer