My requirements are as follows.
I have a web application developed in java.
I have a link in the html page. When the first client clicks submit button in the html page the batch file should run.
Meanwhile when the other client clicks the submit button he should get message that the page is busy.
If the first client clicks release button then the other clients must be able to run the batch file.
How can I do that?