wood burning stoves 2.0*
The moose likes Servlets and the fly likes How to I schedule program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to I schedule program" Watch "How to I schedule program" New topic

How to I schedule program

Vinoth Thirunavukarasu
Ranch Hand

Joined: Dec 18, 2008
Posts: 164

I want to schedule a program for the specified time only. How can I do that so.

Java Best Practices
Linux Best Practices
Amortization Calculator

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41178
Have a look at the java.util.Timer and TimerTask classes.

Ping & DNS - my free Android networking tools app
Kumar Mettu

Joined: Mar 01, 2008
Posts: 6

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.


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

<A href="http://javaswamy.blogspot.com">My Blog</A>
jQuery in Action, 2nd edition
subject: How to I schedule program
Similar Threads
how to automate a java program
Student discounted SCJP Voucher ... after Sun purchase
Is it possible to run a Swing application on startup of PC
Trouble with Prometric ..
How to schedule jobs on Win-NT