For the most part, it's not a good idea to attempt to consort with threads in a process unrelated to your own. Among other things, they may be running on a seperate CPU, in a separate address space or be in some other way not part of the same universe as your process.
However, a bigger question is "why stop JBoss?" One of the features that JBoss excels at is on-the-fly app updating. In most cases, it's sufficient to simply deploy a new copy of your webapp and JBoss will shut down the old copy and start the new one. And it takes a lot less time than restarting the entire app container.
Science is the process of replacing what we "know" with what is TRUE. Politics, alas, often prefers to be the opposite.
Yes, thats very true. I need not restart the JBoss. Anyhow, to make the script wait, I can use this: sleep 10s this will make the script wait for 10 secs where 's' is a suffix to indicate seconds. Thanks.
Where all the women are strong, all the men are good looking and all the tiny ads are above average: