Reputation: 6968
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
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