What is the best way to schedule a java program, after searching for some time we came across below 3 ways, which is the better of these three, is something that is getting us confused and if there is any better way please let us know.
One way 1: Create a windows task scheduler service to execute a standalone java program to fetch file info and make webService call. Like this)
Second way 2: Create a quartz scheduler service to execute a standalone java program to fetch file info and make webService call. Like this
Third way 3: Use TimerTask(available in java.util package) to execute task in another class.like this
Please suggest which is better way to do it.