I have the following situation in my webapplication. I have a webpage and i have some defined links in the page. The purpose of each link is to call a stored procedure in the background. I mean to say, i opened up a new thread and don't wait for the completion of the stored procedure. But the problem i m facing is, if a user press the link and the process is already running..i want to display a information page with the message that the process is already running.
As i started the calling of the process in a new thread. I can't really check the exception.
JobExecutionThread jth = new JobExecutionThread(name);
How can check the status of the running process (status in "finished" OR "Running") ?