File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 42959
Have a look at the java.util.Timer and TimerTask classes.
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):

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="">My Blog</A>
I agree. Here's the link:
subject: How to I schedule program
It's not a secret anymore!