• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Doubt about grizzly/glassfish and apache/tomcat

 
Ranch Hand
Posts: 36
  • 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.
 
Marshal
Posts: 69847
278
  • 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: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, to what forum?
 
Rancher
Posts: 43016
76
  • 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.
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic