User upload a single .xls file from browser and we are reading the data using POI library and saving in to the database.
Here my scenario is we have to prevent the user for mutiple upload until one compete cycle is finish. When user tries to upload we show the message as
"Already one excel file is in processing,Please upload after job is finish".
I like to use synchronize method, but i have a doubt as how to trace one cycle is completed or not.
Here one cycle means that reads the data from the excel file and saving in to the database.
As you are using Asynchronous i guess its AJAX only , so until the request has been recivied that is readystate is 4 and status is 200 keep the Mouse in Busy state (that is a dumble symbol) and after that keep mouse style in normal state .
Save India From Corruption - Anna Hazare.
Joined: Jun 04, 2005
the database. I created synchronized method in java to prevent, but here I have a doubt as how we know one complete cycle is finished or not.
Because When the user tries to upload another excel file from browser before the complete cycle we show the message to user as "Already one excel file is in
processing, Please upload after job is finish" in screen.