About the Java Bridge Technology

The Java Middleware module (JavaMW) provides PHP connectivity to Java. The API is analogous to the standard PHP Java API (http://www.zend.com/manual/ref.java.php), however the implementation is different. JavaMW uses a stand-alone Java server process, which allows it to efficiently process Java requests. It adds stability and reliability to the PHP/Java connection. Unlike a standard PHP/Java connector, it uses a single Java virtual machine for all the requests, which makes memory and processor requirements significantly more modest while improving scalability.

The diagram below illustrates the Java Bridge technology:

jb_process_level.gif

Java Bridge Process Level

The Java Bridge Process Level diagram illustrates the following:

Platform Node

Platform Nodes include two bridging components: the PHP-side Bridge and the Java-side Bridge.  Platform Nodes operate as follows:

  1. A JVM (Java Virtual Machine) is installed first-before installing the Platform Node-on the machine that is to be set up with Platform.
    For the Java Bridge to function, you must install a compatible version of JVM. Platform will find the compatible version automatically. Supported versions are SUN J2SE 1.4 or SUN J2SE1.5 (J2SE 5).

  2. Platform then installs the two components required-the PHP-side and the Java-side-to create the Java Bridge.

  3. A PHP application can call a Java object from any Java library that resides on the Node.
    For example, JVM can be downloaded with all its component libraries.

When a PHP application calls a Java object over the Java Bridge, a proxy for that object is created in PHP. In the diagram, the Java object is represented as a dark square; the proxy for that object in PHP is shown as a light square.

J2EE Application Server

The J2EE Application Server in its more advanced configuration, allows you to create a PHP/Java Bridge between a Platform Node and an external J2EE Application Server. This type of configuration is typical of companies that have existing Java-based infrastructure. The J2EE Application Server operates as follow:

  1. A PHP application can call a Java object from a Java library external to Platform.

  2. The Java-side Bridge component communicates with the J2EE Server. It finds objects in the J2EE Server, for example an EJB. The entire process is Java based.

  3. The PHP application then calls the Java object over the Java Bridge created between the two Platform bridging components.

  4. A proxy for that object is created in PHP. In the diagram, the Java object is represented as a dark square; the proxy for that object in PHP is shown as a light square.

The complete integration of Java and PHP is described in the following diagram:

system_diagram_wjava.gif

Java Bridge System Level

The Java Bridge System Level diagram illustrates the following about the network architecture:

Added Value

Platform’s Java Bridge supports a PHP-Java integration that benefits enterprises on both the business and technical level.

Business Level Benefits:

Technical Level Benefits:

 

 

Related Links

Related Links:
Java Bridge

Operating and Configuring

Java Bridge Tab

Common Tasks

Usability Issues