[Application overview]
I am currently writing a college final year project
which uses a thin php scripting layer
to transfer posted request attributes
over to a system written in java.
Once the request attributes reach my java application for business logic processing.
Several Java Threads are launched with a minor priorities.
One such thread stays up for infinity (if there is such a thing 🙂 )
This particular thread monitors all sent requests from the php scripting layer.
[Environment]
Win NT
Apache WEB Server
php 4 (php java extensions are set in php.ini)
JDK 1.3
(No Servlet Engine involved just basic java objects)
[Problem]
Now my problem is that once the Java business logic has completed it.
It sends a html string back to php scripting layer,
which the php script receives, because I logging it in both environments.
But the php script will never output the html string
to the browser because the infinite thread is still running.
As far as I know the php java extension in php4
uses JNI which causes the JVM process to be run
inside the php.exe process.
Any ideas, solutions would be most great,
thanks