From: Jost B. <jos...@ya...> - 2005-10-08 15:50:33
|
Hi Scott, > Now, considering option 1 (Apache front-end): > a. Can we share PHP and JSP sessions with this > deployment? Yes, of course. The "servlet engine behind a HTTP server" is the only option available for an internet server. > I'm unclear how JSP sessions are handled > when using the Apache java connector. When the backend is running in a servlet engine or application server, all pages are generated by the servlet engine or application server. PHP is only used to generate the content within the page. For example if you set java.servlet="/myctx/MyServlet" and you ask the server for a session handle via: $handle=java_get_session(); the server will generate an empty page with a random cookie (with the path "/myctx") and ask php to generate the content. The result will be returned to the client. The "php as a cgi sub-component" works similar. > b. Can my PHP page running in Apache actually talk > through the bridge to a webapp deployed on Tomcat? > Basically I need to get to objects in the > ServletContext. The servlet context is there, but you cannot access it at the moment (it is private). Currently you can only access the session store. Why do you need to access the servlet context? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |