|
From: <php...@li...> - 2009-03-27 09:25:09
|
Hi Jost, I see this in my java.ini (which was autoinstalled): ------- ;; If you want to start the default JVM automatically when the HTTP ;; server starts, disable java.hosts, java.servlet and ;; java.socketname, set java.java_home=<VM_HOME> and ;; java.java=<VM_EXE>, for example: ------- And I've been successfully using this 'method' on a different server using v4.x of the php java bridge. That server does not run any servlet engine excepting that which is autostarted by the java bridge. Does anyone else use this 'method' for lightweight java access? Another thing is, in the example that you had given, http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php it includes this line: require_once("java/Java.inc"); Do I just extract and place this Java.inc in the required directory manually? Is that the way to do it? Warm Regards, Thangaraj ------------- Hi, The bridge cannot "autostart". Basically you write or include() PHP code to connect to a Java back end and then use the provided VM bridge protocol to invoke java and/or php code. If you want to manage a java back end from PHP, use PHP exec() and java("java.lang.System")->exit(), please see this example for details: http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php Please remove all php "java.so" and "php_java.dll" you can find and then follow the install instructions on http://php-java-bridge.sourceforge.net/pjb/installation.php Regards, Jost Boekemeier |