KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've a long-running task defined in a Spring service. It is started by a Spring MVC controller. I want to start the service and return back an HttpResponse to the caller before the service ends. The service saves a file on file system at end. In javascript I've created a polling job to check service status. In Spring 3.2 I've found the @Async annotation, but I don't understand how it is different from DeferredResult and Callable . When do I have to use @Async and when should I use DeferredResult ?
Tags (comma-separated)
Save Edits
Cancel