A PHP Java class , is distributed with a standard JEE web application . The class uses XML to invoke Java procedures/methods of the running web application . Procedures of the current PHP environment or of any PHP object may be called by Java , as long as the connection is established. The invocation works in both directions, the JSR 223 interface can be used to invoke PHP methods within a running PHP server (Apache/IIS, FastCGI, ...) so that Java components can call PHP instances and PHP scripts can invoke Java (e.g. Java, KAWA, JRuby) based applications or transfer control back to the environment where the request came from. The bridge can be set up to automatically start a PHP front- or a Java back end, if needed. PHP/Java Bridge Web Application The PHP/Java Bridge is distributed as a standard JEE web application , JavaBridge.war . It can be deployed to any standard Java servlet engine or Java application server. It is a distributable ZIP archive, containing ...