• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt about grizzly/glassfish and apache/tomcat

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, to what forum?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic