开发者

Calling Jar From Php (What if multiple requests made at the same time?)

开发者 https://www.devze.com 2023-04-13 03:37 出处:网络
I am calling a Jar file on my php server via exec(\'java -jar /pat/to/file.jar\', $output); But i am wondering, If two consequent requests made to the php function that runs the jar file, would th

I am calling a Jar file on my php server via

exec('java -jar /pat/to/file.jar', $output);

But i am wondering, If two consequent requests made to the php function that runs the jar file, would the second request be able to reach the jar file? Or would it have to wait because the jar file is already in use?

Th开发者_运维百科anks in advance.


I have used this in the past and it seems to work well: http://php-java-bridge.sourceforge.net/doc/how_it_works.php

0

精彩评论

暂无评论...
验证码 换一张
取 消