Archived
This forum has been archived. Please start a new discussion on GitHub.
Server executes in parallel its methods?
in Help Center
Hi,
I have a java server running in a computer with an ip and a port fixes. It has two methods: methodA and methodB.
Method A executes an external application APP, like this:
APP is blocked after 10 seconds, so the server is blocked too in line:
From other computer, an application call the remote methodB and ideally it must unblock APP so the previous methodA too.
I would like to know if it is possible this approach, because I am trying to make it, but the server does not run methodB if it is blocked in methodA .
Thanks in advance.
I have a java server running in a computer with an ip and a port fixes. It has two methods: methodA and methodB.
Method A executes an external application APP, like this:
Process p = Runtime.getRuntime().exec("APP"); ... p.waitFor();
APP is blocked after 10 seconds, so the server is blocked too in line:
p.waitFor()
From other computer, an application call the remote methodB and ideally it must unblock APP so the previous methodA too.
I would like to know if it is possible this approach, because I am trying to make it, but the server does not run methodB if it is blocked in methodA .
Thanks in advance.
0
Comments
-
Thanks! it works0