J33nn
J33nn

Reputation: 3234

Best way to schedule certain task in Java

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

Answers (1)

jtahlborn
jtahlborn

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

Related Questions