Good day!

There is a question about creating asynchronous processes in Tomcat.

The question is: how do classes that should work in parallel are written under Tomcat?

It is necessary that once a minute the process of information is downloaded through SSH, and the main process will update the page in accordance with this information.

Do they write it somehow especially under Tomcat using Web Services for example, or do they use the usual multithreading Java SE?

Thanks in advance

  • use common multithreading Java SE - Senior Pomidor
  • But is it not easier to make a script on the page requesting this information with a specified period. Well, a separate stream to update it. - Riĥard Brugekĥaim
  • make a simple java scheduler , this is the usual Java SE - MrFylypenko

0