Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to stop a running task initiated by a servlet?

 
david arnold
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a jsp page which user can select file(s) and select submit, then the servlet get the file(log) name and start reading the file in realtime(do something like send email if log file contains error). Then user can select another file to read and so on. This can be done. The problem is that later (e.g. two days later) if user choose to stop reading one of the log that is being read, what is the method/way to do that?

Thanks,

David
 
Arun Kumar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you could have a UI displaying the status for file processing along with controls to stop/start processing.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic