Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Architecture question role of webserver when using JSP/servlets

Status
Not open for further replies.

borntorun

MIS
Oct 16, 2003
82
GB
Guys,

I understand what jsp/servlets do what i am trying to understand is the role of a webserver when you are also using tomcat/weblogic/websphere.

Why do you need a commercial webserver if the majority of the application is written using servlets or jsps?

I also don't understand how the two are communicating: IE is all the html being passed back through the webserver? What does the webserver do when it receives a request for a servlet or a jsp page?

Thanks for helping me.

I have browsed around the internet but not found any links that can help me over this one.
 
>>>> Why do you need a commercial webserver if the majority of the application is written using servlets or jsps?

You don't have to, but its quicker !
A standard static http server is used if sites have a lot of static content like images, and pure static html pages, because a pure static http server is quicker at serving out files than a servlet container.

How to link the two is vendor specific, but as an example, if you are trying to link Tomcat to Apache, then in the httpd.conf files a "JKMount" is used to map certain request URLs to the servlet container - ie for anything dynamic, the URL is served by Tomcat.
 
Yes the resulting html (from a jsp or servlet) is passed from tomcat to the web-server and the web-server returns it back to the client.

So because the web server is faster than tomcat in servicing clients, it is better to connect the application server with a commercial web server.

So, the performance gain is not only in static content. Even if your application does not have static content at all it is better to connect the application server with a commercial web server.
 
evgeniosc : I think after 18 months, there is little point in replying to posts !!!

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top