From: Jost B. <jos...@ya...> - 2005-10-13 16:33:33
|
Hi Mohammed, > knows where the jvm > gets initialized and started so that i can set some > env variables that when the RunJavaBridge executable exists in the php extension dir it will be called instead of java, please see the "java command" from phpinfo() for details. On RedHat Fedora the following could be used: # rename RunJavaBridge mv /usr/lib/php/modules/RunJavaBridge \ /usr/lib/php/modules/RunJavaBridge.bin # create a custom RunJavaBridge script cat >/usr/lib/php/modules/RunJavaBridge <<\EOF1 #!/bin/sh # This is a custom script which calls the JVM # with additional arguments. $java=$1; shift $args="$@"; $myArgs="-Dphp.java.bridge.threads=30"; exec /usr/lib/php/modules/RunJavaBridge.bin \ $java \ $myArgs \ $args EOF1 # make our script executable. chmod +x /usr/lib/php/modules/RunJavaBridge (The above example calls the saved RunJavaBridge.bin because it still carries the javabridge_t security context. If you don't have Security Enhanced Linux or if you have tagged your RunJavaBridge script with javabridge_t, you can remove the old RunJavaBridge.bin and call java directly.) Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |