Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt about grizzly/glassfish and apache/tomcat

 
Oscar Calderon
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, to what forum?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic