Access by one client at a time
<p>My requirements are as follows.</p>

<p>I have a web application developed in java.</p>

<p>I have a link in the html page. When the first client clicks submit button in the html page the batch file should run.</p>

<p>Meanwhile when the other client clicks the submit button he should get message that the page is busy.</p>

<p>If the first client clicks release button then the other clients must be able to run the batch file.</p>

<p>How can I do that?</p>
