|
From: <php...@li...> - 2009-11-06 08:41:52
|
> but then why does "make install" ... still put java.so, RunJavaBridge, ... I was too lazy to remove them. I will clean up the CVS when I have some time. > these are not needed in the php installation where I > want to use java Exactly. All you need to access java libraries from PHP is a Java web application containing JavaBridge.jar and php-servlet.jar deployed on some server on the intranet (or even the internet). -- You can even start a local Java daemon from your php script by setting JAVA_HOSTS to some integer and JAVA_SERVLET to false. But such a standalone daemon is difficult to log unless you set up log4j. > with back end you refer to the php application here? The Java container running the JavaBridge.war application. -- In a typical n-tier setup PHP is the front-end, handling client requests. > s however requires "allow-url- fopen". Would t If I have some time I will fix fopen so that it can fetch and cache scripts from a local URL by default. In the meantime please adjust JAVA_HOSTS and JAVA_SERVLET, if necessary (they default to localhost:8080 and /JavaBridge/JavaBridge.phpjavabridge) and include Java.inc from the file system. Regards, Jost Boekemeier On 6 Nov 2009 08:54, <php...@li...> wrote: Hello Jost, first of all, thx for clarification and all the great work you have put into this. php...@li... schrieb: > Hi, [...] > During this time some things changed; the new PHP/Zend object system became > stable, eliminating ... but then why does "make install" and/or "install.sh" from CVS sources still put 'JavaBridge.jar, JavaBridge.war, java.so, php-script.jar, RunJavaBridge and script-api.jar' into my PHP installations lib dir (/usr/lib/php5/20060613/)? Reading your comment and understanding more and more about the usage of pjb(php java bridge) it seems like all of these are not needed in the php installation where I want to use java. > The proposed PHP namespace separator has changed, too. Instead of [...] > To avoid the mentioned issues, please deploy JavaBridge.war or > JavaBridgeTemplate.war to a JEE s... with back end you refer to the php application here? >> I do have JavaBridge running. However, somehow >> Drupal doesn't seem to recognize that it exist... waow, I didn't spot this "autoconfiguration feature" yet. Seems like a very cool and nice idea! This however requires "allow-url-fopen". Would this be required anyway, or just here to include "Java.inc"? I have seen the "make install / install.sh" put Java.inc into my pear directory. So for me Java.inc is on the include path already. :-> > It's really that simple. Just get rid of the old php.ini cruft. :) At least in the source distribution/CVS there are quite a few files with peaces of documentation of all different scenarios and considering the evolving history of pjb it is just not that easy to understand what one has to do with the recent version to set it up properly. I am fully aware that using CVS/sources one has to expect trouble, so I am not complaining! ;) Thx and Greets, Peter ------------------------------------------------------------------------------ Let Crystal Reports ... |