Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

sheduling in java

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how to support for sheduling in java
dear sir : iam doing project in which i have to support sheduling for ex u might have seen windows operating system supports sheduling,like u may see the clock in the taskbar of windows it will be running continuously, it will show the correct time when u boot the computer every time. In the similar fashion i have written an application for url validation i want to set the frequency of that application say 2 days(what ever) it should run automatically without user intervention once for the specified time frequency, u can assume that computer will be running continuously.
Is there any packages or third party tools which can be used to support such type of sheduling.
if anybody have written such type application please send the code for my reference. please help me iam in hurry.
humbly request
thanks a lot in advance
dinesh
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you could have a thread that sleeps for a long time .. wakes up every so often and gets a new java.util.date (the current time) ... and compares it to the last time it ran the schduled service to see whether it should run another one
 
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic