• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to I schedule program

 
Ranch Hand
Posts: 164
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I want to schedule a program for the specified time only. How can I do that so.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have a look at the java.util.Timer and TimerTask classes.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ULF,

Depends on what you really want to Schedule. If you are looking at Scheduling a native job, Look for Cron Job. If you need to schedule a piece of java code as part of your application look at java.util.Timer and java.util.TimerTask. IF you need a JEE based scheduler look at Timer Service.

There are several java based products (both open source and commercial) that can help you with scheduling requirements. Couple of there are:
Quartz(Open Source): http://www.opensymphony.com/quartz/
Flux(commercial): http://www.fluxcorp.com/

Hope this helps.
Kumar.

javaswamy.blogspot.com


vinoth thirunavukarasu wrote:Hi,
I want to schedule a program for the specified time only. How can I do that so.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic