Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 14556 invoked from network); 3 Apr 2004 07:58:44 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Apr 2004 07:58:44 -0000 Received: (qmail 95341 invoked by uid 500); 3 Apr 2004 07:58:15 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 95099 invoked by uid 500); 3 Apr 2004 07:58:13 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 95084 invoked from network); 3 Apr 2004 07:58:13 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 3 Apr 2004 07:58:13 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B9g2r-00057P-00 for ; Sat, 03 Apr 2004 09:58:25 +0200 Received: from 63-203-206-78.dsl.snfc21.pacbell.net ([63.203.206.78]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Apr 2004 09:58:25 +0200 Received: from cmanolache by 63-203-206-78.dsl.snfc21.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Apr 2004 09:58:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-dev@jakarta.apache.org From: Costin Manolache Subject: Re: TC evolment Date: Fri, 02 Apr 2004 23:58:20 -0800 Lines: 74 Message-ID: References: <406E643A.6070200@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 63-203-206-78.dsl.snfc21.pacbell.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7a) Gecko/20040218 X-Accept-Language: en-us, en In-Reply-To: Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Mladen Turk wrote: > > > >>>From Costin Manolache >>Sent: Saturday, April 03, 2004 9:14 AM >> >>> >>>If a majority of my web content is a dynamic one, delivered through >>>JSP, PHP, or what ever, why would I need a dummy web server >> >>as an intermediate? >> >> >>The webserver is not only for static content. If you use >>Apache just because it serves the static content faster than >>tomcat - you are using it for the wrong reason. >> > > > Yes, but I found myself lately to use it just for glueing those techologies > together, of course thanks to the large module database, it's not such a big > deal. > Having every content passing several systems is not so stable solution > thought, cause each channel will add it's risk percentage. If you're worried about risk, then probably glueing PHP with tomcat will be a bad choice. Tomcat is limited by Java's bad support for integration with native code. Apache will have no problem running Php, perl, python, .net or integrating with any native library that exists today. For tomcat running openSSL seems to be a big thing, and we know too well how difficult it is to get it working with JNI. For tomcat - you can attempt to rewrite/replace every feature in Java ( we are doing this for LDAP auth for example - not sure if JNDI is better or faster than the native ldap auth in apache ). Or you can try to use JNI or connectors - like mod_jk. Or you can just use what already works and is stable, and do something better with your time :-) > > >>The raw page speed is not everything. There is also the >>memory use, CPU load, startup time, stability, etc. >> > > > And there is the maintainability, scalability, etc. which I think Java is > better at. Java may be more maintainable - but in this particular case do you think PHP + JNI/connector + tomcat would be more maintainable than the existing and well tested Apache + mod_php ? About scalability - April 1 is over on my timezone :-) > As you said nothing stops me of doing something like that, and of course > nothing stops me being totally wrong :). Well, what would be wrong is to not try if you think it's a good idea:-) I'm allways interested in integration between Java and native code - and even if I don't think Tomcat+PHP would stand a chance to Apache+mod_php - I'm looking forward to see more work in the area of JNI or connectivity between java and the rest of the world. Costin --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org