• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java application as a windows service  RSS feed

 
Eddie Howard
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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?

Thanks

Rgds
Ed
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!