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

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 consecutive requests made to a php function that runs the jar file, can the second request get the jar file? Or will he have to wait because the jar file is already in use?

Thanks in advance.

+4
source share
1 answer

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

+2
source

All Articles