aspose file tools
The moose likes Java in General and the fly likes windows service type application in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "windows service type application in Java" Watch "windows service type application in Java" New topic
Author

windows service type application in Java

Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
I have a standalone program, which needs to be converted into a windows service flavor. I know I can make a thread schedular which continiously runs into memory and runs particular query(my requirement) every minute or so. I am trying to gather ideas here for the best implementation/approach.
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3652

There are a number of service wrappers, most open source I believe, that you can use to package a java application as a windows service. Google should be able to provide some examples.


My Blog: Down Home Country Coding with Scott Selikoff
Jayesh Lalwani
Ranch Hand

Joined: Nov 05, 2004
Posts: 502
We use Java Service Wrapper and it works quite well
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3652

I think I used this one before too, takes a little getting used to but works nicely.
Ulas Ergin
Ranch Hand

Joined: Oct 10, 2002
Posts: 77
I use JSL (Java Service Launcher ) and am happy with it
Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
JSL doesn't support unix/linux.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

No, but then you asked for a "Windows Service" type application, so I don't think Ulas Ergin is out of place suggesting it.

If you want a cross platform approach to writing a daemon process that you can background (by whatever method your particular OS supports) you could just use a java.util.Timer.
[ January 26, 2006: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: windows service type application in Java
 
Similar Threads
String class can't find split method: wrong java version?
File i/o from Tomcat
How to catch the stop signal from windows service in a java application
Java Swing/Awt tray application as windows service in windows Vista/Windows7
How to restart webstart app