Hi,
I have got a shell script which calls a java program(BuildPage.java). I have created a thread and is starting from BuildPage.java. My intention was not to build pages concurrently as this script is calling from many places. So i have created a Thread (CreatePage.java) and started it from BuildPage.java.
In this, i'm creating a lock file in the synchronised method and removing it after build is over.
From webapplication, i'm calling the script to build the pages from a servlet. While building, the application hangs. I'm not much familiar with Threads.
Please help me to get rid of this problem. Also please suggest any different way of implementation for this.
Thanks in advance..
// ============================================
// ============================================
// ============================================
[NK: Please UseCodeTags]
I have got a shell script which calls a java program(BuildPage.java). I have created a thread and is starting from BuildPage.java. My intention was not to build pages concurrently as this script is calling from many places. So i have created a Thread (CreatePage.java) and started it from BuildPage.java.
In this, i'm creating a lock file in the synchronised method and removing it after build is over.
From webapplication, i'm calling the script to build the pages from a servlet. While building, the application hangs. I'm not much familiar with Threads.
Please help me to get rid of this problem. Also please suggest any different way of implementation for this.
Thanks in advance..
// ============================================
// ============================================
// ============================================
[NK: Please UseCodeTags]