I am Calling a java standalone program through a cronjob.
In the program I have written logic that will create a CSV file.
The problem is sometimes it takes long time to create the csv file, so I need to facilitate user some way of cancelling it. User will cancel it through UI.
Can any body suggest what could be the best approach to implement it.
Also I want multi threaded approach too because many users will request to create CSV file.