aspose file tools*
The moose likes Tomcat and the fly likes Doubt about grizzly/glassfish and apache/tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Doubt about grizzly/glassfish and apache/tomcat" Watch "Doubt about grizzly/glassfish and apache/tomcat" New topic
Author

Doubt about grizzly/glassfish and apache/tomcat

Oscar Calderon
Ranch Hand

Joined: Nov 27, 2009
Posts: 32
Hi to all, i don't know if this is the right thread to start this conversation. I have a doubt about something that i read in this article (i don't want to spam, i only want to reference the source of my doubt):
h**p://java.dzone.com/articles/glassfish-and-tomcat-whats-the

I see this paragraph "... if you wanted to get good HTTP performance from Tomcat you really needed to have a the Apache web server to sit in front of Tomcat which ..." and this "Since GlassFish v1 (May 2006), Grizzly is the HTTP frontend of the application server....", well, i don't understand very well, but, that means that Tomcat inside of it has Apache Server embedded? If that's the case, it means that apache server is used for jsp and Tomcat for servlets or something like that? Also, can i install php module and use apache tomcat to serve php files?

Thanks in advance.


Wanna grow? Learn, live, love people and enjoy life
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38412
    
  23
Oscar Calderon wrote:Hi to all, i don't know if this is the right [forum] to start this conversation. . . .
Thanks in advance.
Afraid not. Moving thread.
Oscar Calderon
Ranch Hand

Joined: Nov 27, 2009
Posts: 32
Ok, to what forum?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41574
    
  54
that means that Tomcat inside of it has Apache Server embedded?

No, it means that there are two servers running (Tomcat and Apache httpd), and that all requests go to httpd (which so acts as a "front") and which passes all servlet/JSP requests to Tomcat.

If that's the case, it means that apache server is used for jsp and Tomcat for servlets or something like that?

httpd can't handle JSP (which is a Java technology). It would be used to handle everything that's not a Java web app: other static content, maybe PHP, maybe Perl, ...

Also, can i install php module and use apache tomcat to serve php files?

Modules are an httpd feature, not a Tomcat feature. So, if you install a PHP module into httpd, then it can handle static content and PHP content, while it would pass on servlet/JSP requests to Tomcat.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt about grizzly/glassfish and apache/tomcat