I am writing a servlet, where I have to process the user data. But since processing the data takes time, I need to send response that user and data is valid, before I process the data. Is there a way I can first send the response, and then process the data. Something like,
response.send();
processData();
Thanks
Put the processData in a different thread. ex:
Where proccessOn is a session/static boolean that is used not to relaunch the process twice.