[HELP] Execute a daily operation
Hi all,
I would like to know according to you, what's the best method to execute a java operation daily.
I need to export a mySQL table in a txt file through JDBC every day at 00:00. Export the table it is not a problem, but I don't know how to execute the operation every day at that exact time.
Can someone help me? Thanks.
Augusto.
XP must have some kind of corresponding functionality.But this is a Windows question, not a Java question. Maybe someone here knows but you might be better off asking on a Windows forum.
I suppose you could create a Java program that starts on host startup and which invokes some functionality at certain times, but that seems like a roundabout way of solving the problem.
> I suppose you could create a Java program that starts on host startup and which invokes some functionality at certain times, but that seems like a roundabout way of solving the problem.
I understand... anyways I would prefer to do this in Java, if it's possible...
> http://www.opensymphony.com/quartz/
Wow, very interesting... thanks yawmark, I will try to use it.
Does someone know other ways?
> What was wrong with DrClap's suggestion? It's certainly easy to do.
Yes, you are right... I'm using Windows, but actually I think that I would not use cron either if I was using linux. Ii would like to solve this problem with java, to allow the program to be executed on multiple OS...
any other ideas?
> any other ideas?
http://www.opensymphony.com/quartz/
Competing Products?
There are no known competing open source projects (there are a few schedulers, but they are basically Cron replacements written in Java).
Commercially, you may want to look at the [url=http://www.fluxcorp.com/]Flux scheduler[/url].