0

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!!

TomSelleck
  • 6,706
  • 22
  • 82
  • 151

2 Answers2

4

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.

Community
  • 1
  • 1
vikiiii
  • 9,246
  • 9
  • 49
  • 68
0

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

WebComer
  • 1,131
  • 2
  • 19
  • 31