On Tue, Jun 9, 2009 at 5:11 PM,
Raghavan.30May1981_GMail<
raghavan....@gmail.com> wrote:
> Sriram, as you said, calling destroy() method eventually does the same. It
> calls the method on the process instance which holds the subprocess and it
> kills/destroys both of them.
This destruction will not be guaranteed to happen on time with the
streams closing, and the process destruction using Process itself is
not guaranteed at all, unfortunately.
>
> Nevertheless, Swing GUI also has to be invoked on the underlying platform
> using which only you would be launching the subprocess. What difference it
> would have made?
I started of with invoking a sub-process which was fine with tomcat
3.3. With Tomcat 4, I ended up assembling components together myself
(no server.xml, for e.g.), and learned enough to rewrite Tomcat twice
using just the interfaces. There was no subprocess to invoke.
The other link that I gave to you does a better job than process.