process 24x5 in the jar how to convert to.war

I created a jar to calculate forex signals, but I would like to host it on some cloud server. As I've been researching, it will be much easier to convert it to a war.

Since my app should run 24x5, I would need it to run in that same period, without having to make any commands for it.

I have already created a web project, initially in servlet, but the main problem:

No .jar I put a loop on the Main and that's it... in .war, where could I do something similar?

Thank you!

Author: Tiago Oliveira, 2016-05-09

1 answers

From what I understand, you perform a certain action from time to time, correct?

I think Quartz solves your problem. It is basically a scheduled task, similar to the Linux CRON.

 1
Author: NilsonUehara, 2016-05-09 12:20:22