Re: Java Servlet Support

From: Date: Tue, 06 Feb 2001 12:42:29 +0000
Subject: Re: Java Servlet Support
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38377@lists.php.net to get a copy of this message
At 12:25 PM 2/5/2001 -0500, you wrote:
The sapi/servlet option is essentially a Java servlet that you add to your Java webserver just like you would any other servlet and it invokes the PHP engine through JNI and reflection (so you could reference Java objects from within your PHP script). This option is much more efficient then just running the ext/java extension (which allows you to access Java objects from PHP by starting up a JVM per session) since the JVM used is already running in the Java webserver and can be managed much better by the latter than anything ext/java can attempt to do. Note that using this SAPI implies that PHP will be running in your Java Webserver instead of on your HTTP webserver (e.g. Apache) which could have implications (hopefully for the better) unless they're both running on the same physical machine.
That sounds excellent. So if I understand you correctly, I could run Apache with JServ (or Tomcat) and build PHP into it to get a nice solution. I could then write servlets that call PHP scripts/functions and vice versa? Shawn --- Shawn J. Wallace (shawn@justweb.com) Justweb Inc. - http://www.justweb.com (519)652-6599 or (800)343-9312

« previous php.general (#38377) next »