antclick as NT/Win2k service
Is there an easy way to run antclick - including hop, mckoi, jetty - as a service under Windows NT or Windows 2000?
Thanks, malü
Is there an easy way to run antclick - including hop, mckoi, jetty - as a service under Windows NT or Windows 2000?
Thanks, malü
tobi Verwaltung
quite reluctantly using a software tool called service installer -- nothing brand-new, i guess there are more recent tools out there. but it still works with a win2k machine.
generally, this tool just writes some lines into the registry which also could be done manually (afaik).
hns
have a look at this message. I think it's still valid (more or less).
malü
Thanks tobi, thanks hns for your help.
After all it's rather sophisticated than easy to get it runnig. Using Serviceinstaller, which I downloaded here I managed to set up a service on win2k box as well as a nt4 box.
Actually it is more than just a GUI to modify some registry settings, it comes along with a wrapper to start the java class/jar.
Two things may be worth to mention:
(1) I had to modify ANTCLICK_HOME\apps\antville\db.properties. Obviously the antville.url needs to be specified with an absolute path like this: antville.url=jdbc:mckoi:local://d:/Programme/antclick-1.0/db.conf
(2) There's a bug in jvm 1.3 and greater. It quits any JVM as soon as the user logs off - thus the service does only run as long as a user is logged on (which is not the expected behaviour). Actually with jvm 1.3.1 and greater this can be avoided with the command line option -Xrs. It works fine for me if I use these arguments:
-Xrs -jar d:\Programme\antclick-1.0\launcher.jar -w 8080 -h d:\Programme\antclick-1.0