From: <php...@li...> - 2006-10-16 17:32:28
|
Hi, [please excuse the delay] > 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 :( I agree that the documentation is currently in a horrible state. But unfortunately we don't have any time to update or to rewrite it at the moment. > >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. Not necessarily. Running PHP within a J2EE AS is faster than the Apache prefork MPM. The only problem with this setup is that java cannot drop privileges (due to posix constraints), so you need a native wrapper which forwards the request from the HTTP or HTTPS port to the unprivileged 8080 or 8443 ports. In most cases this "native wrapper" is either Apache with mod_jk or Apache with PHP and the PHP/Java Bridge. > Anyway, I am not sure if the above configuration is > correct/desirable Certainly. Your setup is described in fig. #3 in the README. > 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.. I can't comment on this one because I have not much experience with mod_jk. We usually set the Apache DocumentRoot to the J2EE AS webapps directory and set up a .htaccess file. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |