Reputation: 229
How can we determine the status of a Job a servlet is doing. If a sservlet creates a Job Object and call its do() method which takes 2 minutes to complete and we want to show the users how much task it has completed so far on the front-end.
Upvotes: 0
Views: 54
Reputation: 691715
You'll have to
Each polling request will just get the job from the session (or the shared map) and get its status.
Upvotes: 1