Thursday, 24 May 2007
Approach to Bridge Java and PHP |
| |
|
| |
Daniel Krook elaborates on PHP-Java bridge in a new post over his blog. He gives a summary of the concept under the following subheads:
What it is?
He says, in essence, a PHP-Java bridge enables PHP developers to access Java code from within their applications and vice versa. The benefit is that you can reuse libraries or services deployed on one platform from code that exists in a different environment.
This differs from the standard approach of using an HTTP server front end to route individual requests for PHP scripts or J2EE applications. The PHP or Java application can instead call the other without the HTTP server’s involvement.
While you can always use Web service APIs to communicate between your applications over HTTP, PHP-Java bridges provide a method to access the external application’s API directly from the source code. As such, they are much more efficient than traditional network calls.
How it Works?
Implementations enable one or more of the following techniques:
- PHP running as a Web server module calls out to a servlet running on a J2EE application server
- A servlet executes PHP scripts via CGI
- PHP calls non-J2EE Java applications
Where to Get It?
There are three major projects, which implement this technology in varying degrees. .
Find Out More
He talks about an open source PHP/Java Bridge that appears to be the most mature technology at this point. He gives a tip to check out the related links section of the project page.
He also refers to IBM developerWorks post in the first installment of 'Develop with Java and PHP technology on AIX Version 5.3' series on setting up the requisite software in a Unix environment.
There don’t seem to be many details available about the Zend Platform Java Bridge, but he hopes to learn more when Andi Gutmans posts his presentation from JavaOne that he described in this blog entry.
He confesses he's not sure of the roadmap for the PHP Integration Kit since it was announced as an alphaWorks technology last year.
|
| |
|
Read the Post
|
| |
|
|
| |
|
|
| |
|