TomSelleck
TomSelleck

Reputation: 6968

Most efficient method to schedule java application to run daily

I have a java application which downloads a file from an FTP server and I need it to run daily. I was just wondering what the best method to schedule it to run would be. The options I am currently considering are the Windows scheduler and Java timer task.

At the moment I have the windows scheduler pointing at a batch file which runs my program.

If anybody has any knowledge in the area I would appreciate to hear from you!!

Upvotes: 0

Views: 1970

Answers (2)

WebComer
WebComer

Reputation: 1181

Why don't you use @Schedule abilities of EJB 3? If your server is not EJB 3 - capable, use Quartz, Timer and TimerTask classes.

Upvotes: 0

vikiiii
vikiiii

Reputation: 9456

Look at AT TASKS on windows and CRON JOBS on unix. These can run your Java program.

You should also take a look at Quartz which is a Java-based job scheduling system.

You can also get help from this link.

Upvotes: 4

Related Questions