Best Way to Launch External Process from Java Web-Service?
问题 I've inherited a Java web-services code-base (BEA/Oracle Weblogic) and need to start/launch an external background application from a web-service. I've already tried: ProcessBuilder pb = new ProcessBuilder(arg); pb.start(); as well as: Runtime.exec(cmdString); But am experiencing strange behaviors when launching applications in this manner (i.e. the launched application stops working even though the process is still active. -- The application works fine when manually run from a normal command