Win a copy of Rust Web Development this week in the Other Languages 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic