wood burning stoves 2.0*
The moose likes Java in General and the fly likes How to define running interval for Java Window Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to define running interval for Java Window Service" Watch "How to define running interval for Java Window Service" New topic
Author

How to define running interval for Java Window Service

ram gaurav
Ranch Hand

Joined: Mar 29, 2006
Posts: 208
Hi

I am making Window Service in java.

I have created that and its also working fine.

What i want to do now is that, i want that my service keep on running and will perform some specific action after particular interval of time.

Please help me for this.

Thanks
Gaurav
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Have a look at java.util.Timer and java.util.TimerTask.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to define running interval for Java Window Service
 
Similar Threads
Pagination & Session Management
Service Status
Taking Memory Usage Periodically
how to use setTimeout function
Cancelling a ScheduledExecutorService