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 \'
I've had great success with Java Service Wrapper myself. I haven't looked at the others, but the major strengths of ServiceWrapper are:
Anyway, just my 2 cents... :)
Are there any special attributes that you need to apply (like OS guided resource management) that you need to support? Otherwise, for Unix you should be able to daemonize your application by writing an appropriate init.d script and setting your app to start automatically.
Another option is WinRun4J. This is windows only but has some useful features:
Its also open source friendly (CPL) so no restrictions on use.
(full disclosure: I work on this project).