In Spring, is there a way to execute a task after returning a view or I need to create a ThreadPool and do it ?
Ex:
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response) throws Exception {
Map<Object, Object> data = new HashMap<Object, Object>();
//do some stuff
executeSomeStuffButDontWaitForTheResult();
return new ModelAndView("result", data);
}