What is the PHP/Java Bridge?
The PHP/Java Bridge is an implementation of a streaming, XML-based network protocol, which can be used to connect a native script engine, for example PHP, Scheme or Python, with a Java virtual machine. It is up to 50 times faster than local RPC via SOAP, requires less resources on the web-server side. It is faster and more reliable than direct communication via the Java Native Interface, and it requires no additional components to invoke Java procedures from PHP or PHP procedures from Java.
The bridge uses "continuation passing" to invoke procedures/methods from each environment. Although this may be unusual, it is a fast and reliable mechanism to connect different script environments.