java - Tomcat External Executable Call -
i using application runs on tomcat 5 environment. application needs call external application (delphi executable). using following command line make call:
process pr = rt.exec(pattodelphiexe); pr.waitfor();
when start tomcat application, application delphi exe started well, however, when tomcat started service, delphi exe started attached tomcat service "as service".
i need delphi exe started application when call made through tomcat service.
i tried code below apache lib no success:
commandline cmdline = commandline.parse(pathtodelphiexe); defaultexecutor executor = new defaultexecutor(); defaultexecuteresulthandler resulthandler = new defaultexecuteresulthandler(); executor.setexitvalue(1); executor.execute(cmdline, resulthandler);
Comments
Post a Comment