From: <php...@li...> - 2007-07-13 23:44:44
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I've got troubles getting the bridge running over a local unix socket connection. I've installed the Debian package php-java-bridge_4.0.8a on my Ubunto PC and configured the module in many ways already - including autom. startup of a bridge-jvm with apache and also the standalone using the JavaBridge.jar. My question: * where do I set the classpath? When running the JavaBridge.jar? Or in the java.ini, or in both? * how can I enable local socket-only connections? Thanks! - -------------- Using the standalone JavaBridge.jar started with: java -Dphp.java.bridge.threads=10 - -Dphp.java.bridge.base=/usr/lib/php5/20060613+lfs/ - -Djava.classpath=[my-classpath] -jar JavaBridge.jar LOCAL:/tmp/php_java_sock 3 /var/log/php-java-bridge.log and my java.ini: extension = java.so [java] java.hosts = 127.0.0.1:9267 ;;does not work without this actually unused setting! - I only want to use the local socket! java.socketname = /tmp/php_java_sock the bridge doesn't use the socket. I also have troubles with the classpath. I tried to add the classpath in the java.ini with "java.classpath" and I tried to use -Djava.class.path instead of -Djava.classpath... when running the jvm. If I specify the classpath in the ini, phpinfo() shows it, but nevertheless I'm getting: java.lang.ClassNotFoundException: Could not find net.immofirst.maut.realestates.RealEstatesTest in java_require() path - I'm sure that the standalone JavaBridge.jar also requires the CP but has troubles getting it... Thanks. I would appreciate if you could help. Additionally I would interested in your setup concerning performance. I think sockets should be many times faster. How does persistent connections work? The initialisation is very slow - I measured ~300ms/request, 95% goes into connection init - the first java object instantiation is slow, a 2nd one is much faster... Cheers, Andy - -- - ---------------------------------------------------------------------- Dipl.-Ing.(FH) Andreas Langegger Institute for Applied Knowledge Processing Johannes Kepler University Linz A-4040 Linz, Altenberger Straße 69 > http://www.faw.at > http://www.langegger.at -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGmA5iKk9SuaNc5+IRAtboAJ4k35F0gMKyyMERZMIS5Aa64kEUugCg2DL1 m6TlYizpyhYStOzA0yCHLtE= =DlIT -----END PGP SIGNATURE----- |