Hi there,
I am implementing a multithreading UDP listener in Java, which should run
as a background process on a server. Because of special project
specifications each new thread for an UDP datagram has to invoke a PHP file
for working with the UDP datagram and creating result data for the
threadhandler.
Looking for a solution I found JavaBridge, which seems to be the right way.
The installation went well as testing the examples. I customized the
javaproxy php and the jsp calling it for transferring data to the
php-script and back again. All works as described within the jsp.
Because of the project specification I tried to test this within a main
method of java application.
This almost works as expected. But I got the problem, that the application
only works every second time I run the application.
While researching for the problem I only found an entry in this mailing
list about the same problem (
https://sourceforge.net/p/php-java-bridge/mailman/message/24035957/), but
without a clear solution.
This is why I ask if there is a solution for the problem.
The Tomcat server posts the error message "PHP Notice: fwrite(): send of 6
bytes failed with errno=10054...pointing on the Java.inc line 815" about an
expected connection which seems to be closed. Is there an option to fix it?
Maybe within the Java.inc, e.g. reconnecting or something else?
Looking forward for an answer.
BR,
Marcell
|