• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Java application as a windows service

Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have a very simple Java procedure that I would like to install on a windows server 2003 machine as a SERVICE.

This application does a little file processing. It checks for files to process and loops around a wait statement if no files exist. In between loops it does a check for a 'stop' file. If a certain file, a.k.a stop.file exist then the application exits!!!

Currently I have
+ a simple C++ program that uses windows service start & stop API
+ the start and stop API methods call a start & stop bat file.
+ the start.bat launched java application
+ the stop.bat copies stop.file to end application
This works fine until user logs of windows. When user logs off, the child java processes die.

Does any one have any suggestion about my soln?
Does anybody know some fancy what of generating a service from java app, MACRO?

I am familar with open source proejct SERVICE WRAPPER but are ther any alternative?


(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Copy your topic line into Google and I think you'll find quite a few products out there, free and otherwise. Haven't personally used any of them.
She'll be back. I'm just gonna wait here. With this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic