Running a background Java program in Tomcat [duplicate]
问题 This question already has answers here : How to run a background task in a servlet based web application? (5 answers) Closed last year . Can anyone advise here? I have a situation where users will submit data mining requests interactively via a Java JSP and servlet to an application of mine which will dynamically work out association rules on data and more. As such a job may take a while, I\'m thinking of some sort of process on the server to run such a request in the background so it dosen\