|
From: <php...@li...> - 2009-06-19 18:22:57
|
I've been using php-java-bridge for over 3 years. It has performed flawlessly, but I haven't done much to the codebase until recently. When setting up a new dev server (Ubuntu 8.04), we decided to upgrade to 5.4.4.2, and installed the .deb. Unfortunately, we are running into serious problems and frankly I am very confused about the "proper" way to run the bridge for our situation; I am hoping you can offer some advice. Our 3.x production setup is very simple; we have the java.so module in php, and we use a standalone java server on JVM 1.5.0_09: $JAVA -server -Xmx1200m -jar /path/to/JavaBridge.jar INET_LOCAL:9676 3 So, to set up on the Ubuntu box, we installed the deb package. This was pretty confusing since the docs say don't use java.so anymore but it's in the deb package. I will submit that I didn't read the .deb relnotes until just now that say "don't use the deb package". Kindof a weird thing, but OK. FWIW, from the .deb install, we did turn off the java.so and use the require 'Java.inc' method, but we had 2 problems with this: 1. It didn't work with Java 1.6; we had to use Java 1.5 (that may be due to the other jars we are running). Also, although it worked perfectly from php CLI, when run from mod_php it was very unreliable and kept crashing. You could see from the debug log that it would communicate some, but then it would just hang and become unresponsive, to the point that it somehow actually hosed up apache. So what *is* the right way to run the bridge then? Is all I need now is the "JavaBridge.jar" and just run it like I was before, but from php just include Java.inc rather than use the java.so functions? Which download should I grab to get the appropriate JavaBridge.jar? The latest binary package just has a .war file? Or am I crazy to be using the standalone jar? Please advise, I am thoroughly confused! Alan |