Hi
I’m writing some java test tool which observes the jboss behavior. The tool has to start and kill the jboss programmatically (kill doesn’t mean shutdown).
To start the server I just use the ProcessBuilder(“cmd.exe”, “/C”, “run.but”).
The question is how can I kill it? Unfortunately I can’t refer to process name, because there are more than one java-process. Also I can’t use the PID, because it changes every new start.
Thanks.
kill the jboss programmatically
You can use Even Schedule on WIndows on Linux can you use crontab