PHP JAVA Integration

Tuesday, May 23rd, 2006 @ 4:01 am | PHP, Java

While searching for a good text-search engine for PHP, something like the excellent Apache Lucene for Java, I came across a post about PHP-Lucene Integration. Briefly, the post introduce a way to integrate Lucene with PHP via a PHP JAVA Bridge. This piece of software enables PHP to communicate with Java via a XML-based network protocol which can be used to connect a native script engine with a Java virtual machine. It is also stated that it is 50 times faster than local RPC via SOAP. Now this is really good news for me. I have been developing intensively with Java before I started my company, so my Java skill is actually better than PHP (but PHP is so much simpler).

I really PHP love using PHP because it is fast and easy to develop frontend of a web application with templates engine like Smarty.IMO, PHP as the frontend is more mature than Java. Java on the other hand, are excellent for the backend. Java technology like the upcoming EJB3, Hibernate, Swing framework are all really scalable and are design for enterprise.

I am REALLY tempted to explore a full scale PHP/JAVA hybird solution. @_@ But it doesn’t sounds really feasible because there aren’t many developers out there who are good at both PHP and Java. It WILL be a big problem finding programmers if I were to expand my business in the future.
Hmm… I wonder if I could get Cradle to fund my research. =)

Leave a Reply