jQuery in Action, 3rd edition
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 Introducing JavaFX 8 Programming this week in the JavaFX 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: 42958
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): 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>
I agree. Here's the link: http://aspose.com/file-tools
subject: How to I schedule program
It's not a secret anymore!