1 Reply Latest reply on Oct 10, 2012 8:41 AM by erasmomarciano

    killing jboss 6.1 process programmatically

    zont

      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.