Start/Stop process in java

Hi,

Is there a standard solution in jdk api(standard or enterprise) to monitoring other java process?

For monitoring i need:

--Start a java process

--Stop a java process

--Check status of a java process, so if a java process is running or not.

thanks for any suggest,

Mauro,

[324 byte] By [mauroarc] at [2007-9-30 16:45:49]
# 1
Well yea there is, the java.lang.thread class has methods to see if a particular thread is still running or not,So you can create a process within a seperate thread run it, then sometime later check to see if that thread is still active.
java_kxy at 2007-7-6 0:44:19 > top of Java-index,Administration Tools,Sun Connection...
# 2
Ok this is true for only a process...but if i want to start several separate java process?I can't check if a thread is alive in an other jvm instance...maybe this task is possible with some feature of JMX?
mauroarc at 2007-7-6 0:44:19 > top of Java-index,Administration Tools,Sun Connection...
# 3
In 5.0: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ProcessBuilder.htmlUse this to manage and start your process.You can use the Process class to "waitFor()" or "destroy()" it.- Steev.
steevcoc at 2007-7-6 0:44:19 > top of Java-index,Administration Tools,Sun Connection...
# 4
1.5 is good news, because in earlier versions you had to mess with native code to get this to work
xNemi at 2007-7-6 0:44:19 > top of Java-index,Administration Tools,Sun Connection...