Build windows service from java application with procrun | Jörg Lenhard's Blog
Recently, I needed to adjust a Java application to be able to run as a Windows service which is the Windows equivalent to a Unix daemon. There are several libraries available for this kind of task and after some reading, I chose Apache procrun which turned out to be a good choice. The configuration was less painful than expected and the tool seems quite powerful, due to a large set of configuration options. Also, building a Windows service or a Unix daemon should not make much of a difference. I used a 64bit Windows 7 and 32bit Java 7 JVM for this tutorial. Everything you need to know about procrun really is on the page that is linked above. There even is a basic tutorial. However, the documentation is not overly verbose and it took me some time to get everything up and running, so I think a more verbose basic tutorial will not hurt. To begin with, you need a Java application. You can built a service from more or less any application and here is a simple class, SomeService package com.Read full article from Build windows service from java application with procrun | Jörg Lenhard's Blog
No comments:
Post a Comment