----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hi ishpal,
the choice of running your java application in the same or in another JVM is
entirely up to you. If you call the main method yourself in the code, then
the application will run in the same JVM.
You can also use use the java.lang.Runtim.exec methods with a command
line you would use to start your Java application. In that case, you will
launch another JVM instance.
The second JVM should at least be available as long as the first JVM is.
To keep it up after the first JVM has died, you'll have to check, as it is not
specified in the javadoc. You might also have to experiment with "start"
on Windows NT or for example using an & on Unix to launch it as a
background process.
regards
Johan Philippe
ishpal:
----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hi,
I just wanted to know that if I invoke a java application from within
the servlet,
1)Would it start a new JVM or use the current JVM which is used by the
JServ.....?
2)If the java application is invoked from within the servlet,would it
also get destroyed when the servlet gets destroyed...?
I want to launch a java applicaton(which can be said as a deamon
process) from a servlet and should not go down until I want so, even if
the the servlet has been destroyed....
thanks and regards....
-Ishpal.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]