I have a java web application wired using Spring on Tomcat.
I need a way for a user to initiate a background process in the server and return a response to the user without waiting for the background process to complete.
The background process is programmed in java and integrated with my application.
Since i am using tomcat JMS is not an option. I'd rather not have to customize my tomcat installation for the sake of portability.
I could use Quartz or similar and check on a regular basis whether the process should run but i'd prefer something that started instantly.
I have tried spawning a new thread but it is not aware of my Spring beans.
What is the best way to go about this?
Thanks
Max