- The previous post is spot on, it is very bad design to have a JSP do a Runtime.exec. - The server may be "headless" -i.e. have no windowing system-, or the web server may not be allowed to open windows. In both cases this call will fail. - The newly created process is independent of the JSP. Whether it is still running when the JSP is done rendering has no bearing on it. It will continue to run afterwards. - All of which begs the question: What is the point of running a GUI process on the server?
The reason I choose to run a seperate program is, that part of process is a heavy-weight operation. So, Instead of keeping stress on the server which has other important jobs to handle, I've decided to run a seperate program using java.lang.runtime.exec ...
Is my design correct?
Are there any flaws...!! (there are bound to be .. Just let me know).
Is there any specific way of communication between the stand-alone-jar-utility and the server..???