aspose file tools*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to I schedule program" Watch "How to I schedule program" New topic
Author

How to I schedule program

Vinoth Thirunavukarasu
Ranch Hand

Joined: Dec 18, 2008
Posts: 164

Hi,
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
Marshal

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


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

Joined: Mar 01, 2008
Posts: 6
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.


<A href="http://javaswamy.blogspot.com">My Blog</A>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to I schedule program