Reputation: 3234
I'm working on Java web application which requires running certain task (mysql query) once a day. What is the best way to do such thing in Java?
I saw something like Quartz but I'm not sure if it is ok for job like this. With quick review it looks like quartz requires initialization. Can it be done with web application? What about downtimes?
Upvotes: 0
Views: 312
Reputation: 53674
quartz is a great solution (the documentation tells you how to start it in a servlet container). it's also a very popular solution so there is plenty of documentation online.
if you are running within a full j2ee container, there is a built in timer service.
Upvotes: 1