From: <php...@li...> - 2006-10-12 16:16:45
|
Hi, I am wanting to use your php-java-bridge to share httpsession data between a php application and a j2ee application and also for the php applicaton to communicate with some java session facades as an alternative to SOAP based calls. I have had mixed success with the various configurations described in the documentation and would appreciate comments on the most optimal solution. I am finding the documentation a little confusing :( >From what I have read the c-based extension seems to be an obvious choice and running PHP using the Apache module rather than the embedded J2EE AS option seems the safest. Like I said, I have played around - the solution that seemed to work best was when I had the .php files removed from the JavaBridge.war and placed into my Apache doc_root. I had also copied the java directory from the war to the doc_root (I had to update the php.ini include_directory) and I removed the cgi directory from WEB-INF (I wanted to make sure the PHP pages were being served by Apache). With this I was able to run the sessionSharing example - the RMI/IIOP example failed but I have seen a few posts here regarding this... Anyway, I am not sure if the above configuration is correct/desirable - I am sure that now I am using the pure php php/java bridge implementation, I think this because with the java directory (with the php files) things don't work. I have the following configuration: Apache 2.0.59 PHP 5.1.6 mod_jk 1.2.19 Jboss 4.0.4 Java 1.5 We are using Apache to server static content like images and html, we are also using it to serve PHP. We have the following rules for a virtual host: # Dynamic content JkMount _/* worker # Static content JkUnMount _/*.gif worker (more like the above - including _/*.php) I am not really sure if I need the JkAutoAlias also.. Any help/comments most welcome. Send instant messages to your online friends http://uk.messenger.yahoo.com |