You should have a Web Server running for the static resources, and when needed, the web server will ask for dynamic data from the app server.
The app server can replace the web server, but it's not the way it's meant to be, especially when you deal with large applications. For home and learning running just the app server is more than enough. http://www.javaworld.com/javaqa/2002-08/01-qa-0823-appvswebserver.html From: java-ee-j2ee-programming-with-passion@googlegroups.com [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of Anand A. Parikh Sent: October-06-09 7:50 AM To: j2ee passion; peeterbru...@hotmail.com Subject: [java ee programming] Re: Application server VS Web Server Web Server is just for serving static pages. (Apache HTTP Server) Web Container is for serving static and dynamic pages - Servlet/JSP (Apache Tomcat) Application Server is web container plus EJB container. (Apache Geronimo or GlassFish) -Anand --- On Tue, 10/6/09, peeter brunch <peeterbru...@hotmail.com> wrote: From: peeter brunch <peeterbru...@hotmail.com> Subject: [java ee programming] Application server VS Web Server To: "j2ee passion" <java-ee-j2ee-programming-with-passion@googlegroups.com> Date: Tuesday, October 6, 2009, 6:21 AM Hi, May I know what is the difference between application server and web server? The Glassfish server is an application server and does it also takes on the role of a web server as well and how? Regards, Peeter _____ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign <http://clk.atdmt.com/GBL/go/171222985/direct/01/> up now. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---