• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to I schedule program

 
Vinoth Thirunavukarasu
Ranch Hand
Posts: 164
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to schedule a program for the specified time only. How can I do that so.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the java.util.Timer and TimerTask classes.
 
Kumar Mettu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic