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

2

2 Answers 2

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.

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.